Merge branch 'develop' into capitalize-delete-actions
This commit is contained in:
94 files changed
+146
-83
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<Rose::Form
|
||||
class="full-width"
|
||||
@onSubmit={{fn this.submit @submit}}
|
||||
@onSubmit={{fn this.submit @submit this.currentPassword this.newPassword}}
|
||||
@cancel={{fn this.cancel @cancel}}
|
||||
@disabled={{@model.isSaving}}
|
||||
@error={{@model.errors.base}}
|
||||
|
||||
@@ -2,7 +2,7 @@ import Component from '@glimmer/component';
|
||||
import { tracked } from '@glimmer/tracking';
|
||||
import { computed } from '@ember/object';
|
||||
import { action } from '@ember/object';
|
||||
import { next } from '@ember/runloop';
|
||||
import { run } from '@ember/runloop';
|
||||
|
||||
export default class FormAccountPasswordChangePasswordIndexComponent extends Component {
|
||||
|
||||
@@ -50,13 +50,13 @@ export default class FormAccountPasswordChangePasswordIndexComponent extends Com
|
||||
* Call passed submit function with passwords.
|
||||
* Unset passwords before callack.
|
||||
* @param {function} fn
|
||||
* @param {string} currentPassword
|
||||
* @param {string} newPassword
|
||||
*/
|
||||
@action
|
||||
submit(fn) {
|
||||
const currentPassword = this.currentPassword;
|
||||
const newPassword = this.newPassword;
|
||||
next(() => this.resetPasswords());
|
||||
fn(currentPassword, newPassword);
|
||||
submit(fn, currentPassword, newPassword) {
|
||||
run(() => this.resetPasswords());
|
||||
run(() => fn(currentPassword, newPassword));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<Rose::Form
|
||||
@onSubmit={{fn this.submit @submit}}
|
||||
@onSubmit={{fn this.submit @submit this.password}}
|
||||
@disabled={{@model.isSaving}}
|
||||
@error={{@model.errors.base}}
|
||||
as |form|
|
||||
|
||||
@@ -2,7 +2,7 @@ import Component from '@glimmer/component';
|
||||
import { tracked } from '@glimmer/tracking';
|
||||
import { computed } from '@ember/object';
|
||||
import { action } from '@ember/object';
|
||||
import { next } from '@ember/runloop';
|
||||
import { run } from '@ember/runloop';
|
||||
|
||||
export default class FormAccountPasswordSetPasswordIndexComponent extends Component {
|
||||
// =properties
|
||||
@@ -36,11 +36,11 @@ export default class FormAccountPasswordSetPasswordIndexComponent extends Compon
|
||||
* Submit with password value when it is allowed.
|
||||
* Callback with no arguments otherwise.
|
||||
* @param {function} fn
|
||||
* @param {string} password
|
||||
*/
|
||||
@action
|
||||
submit(fn) {
|
||||
const password = this.password;
|
||||
next(() => this.resetPassword());
|
||||
fn(password);
|
||||
submit(fn, password) {
|
||||
run(() => this.resetPassword());
|
||||
run(() => fn(password));
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,11 @@
|
||||
import { helper } from '@ember/component/helper';
|
||||
import { get } from '@ember/object';
|
||||
import { assert } from '@ember/debug';
|
||||
import config from '../config/environment';
|
||||
|
||||
export default helper(function docUrl(params/*, hash*/) {
|
||||
const baseURL = config.documentation.baseURL;
|
||||
const docKey = params[0] || '';
|
||||
const configuredPath = get(config.documentation, docKey);
|
||||
const configuredPath = config.documentation.topics[docKey];
|
||||
if (docKey) {
|
||||
assert(`
|
||||
Documentation for "${docKey}" could not be found. Please ensure that
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
||||
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/core.css">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="{{rootURL}}logo-app.svg">
|
||||
|
||||
{{content-for "head-footer"}}
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Whitespace-only changes.
@@ -5,13 +5,13 @@
|
||||
|
||||
<layout.header>
|
||||
<Rose::Header class="{{if (is-loading) " loading"}}" as |header|>
|
||||
<header.brand @logo="logo-boundary" @text={{app-name}} />
|
||||
<header.brand @logo="logo-app" @text={{app-name}} />
|
||||
|
||||
{{#if this.session.isAuthenticated}}
|
||||
<header.nav as |nav|>
|
||||
<nav.dropdown
|
||||
@text={{this.scope.displayName}}
|
||||
@icon="boundary-icons/org" as |dropdown|
|
||||
@icon="app-icons/org" as |dropdown|
|
||||
>
|
||||
{{#if this.session.data.authenticated.isGlobal}}
|
||||
<dropdown.link @route="scopes.scope" @model="global">
|
||||
@@ -35,11 +35,12 @@
|
||||
<header.utilities as |utilities|>
|
||||
<utilities.dropdown
|
||||
@text={{this.session.data.authenticated.username}}
|
||||
@icon="boundary-icons/user-profile" as |dropdown|
|
||||
@icon="app-icons/user-profile" as |dropdown|
|
||||
>
|
||||
<dropdown.link @route="account.change-password">
|
||||
{{t 'actions.change-password'}}
|
||||
</dropdown.link>
|
||||
<dropdown.separator />
|
||||
<dropdown.button
|
||||
{{on "click" (route-action "invalidateSession")}}
|
||||
>
|
||||
@@ -59,7 +60,7 @@
|
||||
|
||||
<layout.footer>
|
||||
<Rose::Footer as |footer|>
|
||||
<footer.brand @logo="logo-hashi" @text={{company-name}} />
|
||||
<footer.brand @logo="logo-company" @text={{company-name}} />
|
||||
<footer.text>{{company-copyright}}</footer.text>
|
||||
<footer.text>{{app-name}}</footer.text>
|
||||
<footer.nav as |nav|>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<Rose::Nav::Sidebar @title={{t "titles.general"}} as |nav|>
|
||||
<nav.link @route="scopes.scope.projects">
|
||||
<Rose::Icon
|
||||
@name="boundary-icons/project"
|
||||
@name="app-icons/project"
|
||||
@size="medium" />
|
||||
{{t "resources.project.title_plural"}}
|
||||
</nav.link>
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
<Rose::Nav::Sidebar @title={{t "titles.iam"}} as |nav|>
|
||||
<nav.link @route="scopes.scope.users">
|
||||
<Rose::Icon
|
||||
@name="boundary-icons/users"
|
||||
@name="app-icons/users"
|
||||
@size="medium" />
|
||||
{{t "resources.user.title_plural"}}
|
||||
</nav.link>
|
||||
<nav.link @route="scopes.scope.groups">
|
||||
<Rose::Icon
|
||||
@name="boundary-icons/group"
|
||||
@name="app-icons/group"
|
||||
@size="medium" />
|
||||
{{t "resources.group.title_plural"}}
|
||||
</nav.link>
|
||||
<nav.link @route="scopes.scope.roles">
|
||||
<Rose::Icon
|
||||
@name="boundary-icons/roles"
|
||||
@name="app-icons/roles"
|
||||
@size="medium" />
|
||||
{{t "resources.role.title_plural"}}
|
||||
</nav.link>
|
||||
<nav.link @route="scopes.scope.auth-methods">
|
||||
<Rose::Icon
|
||||
@name="boundary-icons/auth-method"
|
||||
@name="app-icons/auth-method"
|
||||
@size="medium" />
|
||||
{{t "resources.auth-method.title_plural"}}
|
||||
</nav.link>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2>
|
||||
{{t "resources.auth-method.title"}}
|
||||
<DocLink @doc="topics.auth-method" @iconSize="large" />
|
||||
<DocLink @doc="auth-method" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.auth-method.description"}}</p>
|
||||
<Copyable
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<h2>
|
||||
{{t "resources.account.title"}}
|
||||
<DocLink @doc="topics.account" @iconSize="large" />
|
||||
<DocLink @doc="account" @iconSize="large" />
|
||||
</h2>
|
||||
<Copyable
|
||||
@text={{@model.id}}
|
||||
|
||||
+4
-1
@@ -1 +1,4 @@
|
||||
<h2>{{t "titles.new"}}</h2>
|
||||
<h2>
|
||||
{{t "titles.new"}}
|
||||
<DocLink @doc="account.new" @iconSize="large" />
|
||||
</h2>
|
||||
@@ -2,7 +2,7 @@
|
||||
<page.header>
|
||||
<h2>
|
||||
{{t "resources.auth-method.title_plural"}}
|
||||
<DocLink @doc="topics.auth-method" @iconSize="large" />
|
||||
<DocLink @doc="auth-method" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.auth-method.description"}}</p>
|
||||
</page.header>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2>
|
||||
{{t "resources.group.title"}}
|
||||
<DocLink @doc="topics.group" @iconSize="large" />
|
||||
<DocLink @doc="group" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.group.description"}}</p>
|
||||
<Copyable
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
<h2>{{t "resources.group.messages.add-members.title"}}</h2>
|
||||
<h2>
|
||||
{{t "resources.group.messages.add-members.title"}}
|
||||
<DocLink @doc="group.add-members" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.group.messages.add-members.description"}}</p>
|
||||
@@ -7,7 +7,7 @@
|
||||
<page.header>
|
||||
<h2>
|
||||
{{t "resources.group.title_plural"}}
|
||||
<DocLink @doc="topics.group" @iconSize="large" />
|
||||
<DocLink @doc="group" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.group.description"}}</p>
|
||||
</page.header>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<page.header>
|
||||
<h2>
|
||||
{{t "resources.org.title_plural"}}
|
||||
<DocLink @doc="topics.org" @iconSize="large" />
|
||||
<DocLink @doc="org" @iconSize="large" />
|
||||
</h2>
|
||||
{{#if @model}}
|
||||
<p>{{t "resources.org.description"}}</p>
|
||||
@@ -35,7 +35,7 @@
|
||||
@title={{org.name}}
|
||||
@description={{org.description}}
|
||||
@id={{org.id}}
|
||||
@icon="boundary-icons/org"
|
||||
@icon="app-icons/org"
|
||||
@route="scopes.scope"
|
||||
@model={{org.id}}
|
||||
/>
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
</page.breadcrumbs>
|
||||
|
||||
<page.header>
|
||||
<h2>{{t "titles.new"}}</h2>
|
||||
<h2>
|
||||
{{t "titles.new"}}
|
||||
<DocLink @doc="org.new" @iconSize="large" />
|
||||
</h2>
|
||||
</page.header>
|
||||
|
||||
<page.body>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<page.header>
|
||||
<h2>
|
||||
{{t "resources.project.title_plural"}}
|
||||
<DocLink @doc="topics.project" @iconSize="large" />
|
||||
<DocLink @doc="project" @iconSize="large" />
|
||||
</h2>
|
||||
{{#if @model}}
|
||||
<p>{{t "resources.project.description"}}</p>
|
||||
@@ -35,7 +35,7 @@
|
||||
@title={{project.name}}
|
||||
@description={{project.description}}
|
||||
@id={{project.id}}
|
||||
@icon="boundary-icons/project"
|
||||
@icon="app-icons/project"
|
||||
@route="scopes.scope.projects.project"
|
||||
@model={{project.id}}
|
||||
/>
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
</page.breadcrumbs>
|
||||
|
||||
<page.header>
|
||||
<h2>{{t "titles.new"}}</h2>
|
||||
<h2>
|
||||
{{t "titles.new"}}
|
||||
<DocLink @doc="project.new" @iconSize="large" />
|
||||
</h2>
|
||||
</page.header>
|
||||
|
||||
<page.body>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<Rose::Nav::Sidebar @title={{t "titles.resources"}} as |nav|>
|
||||
<nav.link @route="scopes.scope.projects.project.sessions">
|
||||
<Rose::Icon
|
||||
@name="boundary-icons/action-session"
|
||||
@name="app-icons/action-session"
|
||||
@size="medium" />
|
||||
{{t "resources.session.title_plural"}}
|
||||
</nav.link>
|
||||
<nav.link @route="scopes.scope.projects.project.targets">
|
||||
<Rose::Icon
|
||||
@name="boundary-icons/target"
|
||||
@name="app-icons/target"
|
||||
@size="medium" />
|
||||
{{t "resources.target.title_plural"}}
|
||||
</nav.link>
|
||||
<nav.link @route="scopes.scope.projects.project.host-catalogs">
|
||||
<Rose::Icon
|
||||
@name="boundary-icons/host-catalogs"
|
||||
@name="app-icons/host-catalogs"
|
||||
@size="medium" />
|
||||
{{t "resources.host-catalog.title_plural"}}
|
||||
</nav.link>
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<h2>
|
||||
{{t "resources.host-catalog.title"}}
|
||||
<DocLink @doc="topics.host-catalog" @iconSize="large" />
|
||||
<DocLink @doc="host-catalog" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.host-catalog.description"}}</p>
|
||||
<Copyable
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<h2>
|
||||
{{t "resources.host-set.title"}}
|
||||
<DocLink @doc="topics.host-set" @iconSize="large" />
|
||||
<DocLink @doc="host-set" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.host-set.description"}}</p>
|
||||
<Copyable
|
||||
|
||||
+5
-2
@@ -1,2 +1,5 @@
|
||||
<h2>{{t "resources.host-set.host.messages.add.title"}}</h2>
|
||||
<p>{{t "resources.host-set.host.messages.add.description"}}</p>
|
||||
<h2>
|
||||
{{t "resources.host-set.host.messages.add.title"}}
|
||||
<DocLink @doc="host-set.add-hosts" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.host-set.host.messages.add.description"}}</p>
|
||||
+4
-1
@@ -1 +1,4 @@
|
||||
<h2>{{t "titles.new"}}</h2>
|
||||
<h2>
|
||||
{{t "titles.new"}}
|
||||
<DocLink @doc="host-set.new" @iconSize="large" />
|
||||
</h2>
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<h2>
|
||||
{{t "resources.host.title"}}
|
||||
<DocLink @doc="topics.host" @iconSize="large" />
|
||||
<DocLink @doc="host" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.host.description"}}</p>
|
||||
<Copyable
|
||||
|
||||
+4
-1
@@ -1 +1,4 @@
|
||||
<h2>{{t "titles.new"}}</h2>
|
||||
<h2>
|
||||
{{t "titles.new"}}
|
||||
<DocLink @doc="host.new" @iconSize="large" />
|
||||
</h2>
|
||||
@@ -7,7 +7,7 @@
|
||||
<page.header>
|
||||
<h2>
|
||||
{{t "resources.host-catalog.title_plural"}}
|
||||
<DocLink @doc="topics.host-catalog" @iconSize="large" />
|
||||
<DocLink @doc="host-catalog" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.host-catalog.description"}}</p>
|
||||
</page.header>
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
</page.breadcrumbs>
|
||||
|
||||
<page.header>
|
||||
<h2>{{t "titles.new"}}</h2>
|
||||
<h2>
|
||||
{{t "titles.new"}}
|
||||
<DocLink @doc="host-catalog.new" @iconSize="large" />
|
||||
</h2>
|
||||
</page.header>
|
||||
|
||||
<page.body>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<page.header>
|
||||
<h2>
|
||||
{{t "resources.project.title"}}
|
||||
<DocLink @doc="topics.project" @iconSize="large" />
|
||||
<DocLink @doc="project" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.project.description"}}</p>
|
||||
<Copyable
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<page.header>
|
||||
<h2>
|
||||
{{t "resources.session.title_plural"}}
|
||||
<DocLink @doc="topics.session" @iconSize="large" />
|
||||
<DocLink @doc="session" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.session.description"}}</p>
|
||||
</page.header>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<page.header>
|
||||
<h2>
|
||||
{{t "resources.target.title_plural"}}
|
||||
<DocLink @doc="topics.target" @iconSize="large" />
|
||||
<DocLink @doc="target" @iconSize="large" />
|
||||
</h2>
|
||||
{{#if @model}}
|
||||
<p>{{t "resources.target.description"}}</p>
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
</page.breadcrumbs>
|
||||
|
||||
<page.header>
|
||||
<h2>{{t "titles.new"}}</h2>
|
||||
<h2>
|
||||
{{t "titles.new"}}
|
||||
<DocLink @doc="target.new" @iconSize="large" />
|
||||
</h2>
|
||||
</page.header>
|
||||
|
||||
<page.body>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2>
|
||||
{{t "resources.target.title"}}
|
||||
<DocLink @doc="topics.target" @iconSize="large" />
|
||||
<DocLink @doc="target" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.target.description"}}</p>
|
||||
<Copyable
|
||||
|
||||
+5
-2
@@ -1,2 +1,5 @@
|
||||
<h2>{{t "resources.target.host-set.messages.add.title"}}</h2>
|
||||
<p>{{t "resources.target.host-set.messages.add.description"}}</p>
|
||||
<h2>
|
||||
{{t "resources.target.host-set.messages.add.title"}}
|
||||
<DocLink @doc="target.add-host-sets" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.target.host-set.messages.add.description"}}</p>
|
||||
@@ -7,7 +7,7 @@
|
||||
<page.header>
|
||||
<h2>
|
||||
{{t "resources.role.title_plural"}}
|
||||
<DocLink @doc="topics.role" @iconSize="large" />
|
||||
<DocLink @doc="role" @iconSize="large" />
|
||||
</h2>
|
||||
{{#if @model}}
|
||||
<p>{{t "resources.role.description"}}</p>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2>
|
||||
{{t "resources.role.title"}}
|
||||
<DocLink @doc="topics.role" @iconSize="large" />
|
||||
<DocLink @doc="role" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.role.description"}}</p>
|
||||
<Copyable
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
<h2>{{t "resources.role.principal.messages.add-principals.title"}}</h2>
|
||||
<p>{{t "resources.role.principal.messages.add-principals.description"}}</p>
|
||||
<h2>
|
||||
{{t "resources.role.principal.messages.add-principals.title"}}
|
||||
<DocLink @doc="role.add-principals" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.role.principal.messages.add-principals.description"}}</p>
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2>
|
||||
{{t "resources.role.title"}}
|
||||
<DocLink @doc="topics.role" @iconSize="large" />
|
||||
<DocLink @doc="role" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.role.grant.description"}}</p>
|
||||
<Copyable
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2>
|
||||
{{t "resources.role.title"}}
|
||||
<DocLink @doc="topics.role" @iconSize="large" />
|
||||
<DocLink @doc="role" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.role.principal.description"}}</p>
|
||||
<Copyable
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<page.header>
|
||||
<h2>
|
||||
{{t "resources.user.title_plural"}}
|
||||
<DocLink @doc="topics.user" @iconSize="large" />
|
||||
<DocLink @doc="user" @iconSize="large" />
|
||||
</h2>
|
||||
{{#if @model}}
|
||||
<p>{{t "resources.user.description"}}</p>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2>
|
||||
{{t "resources.user.title"}}
|
||||
<DocLink @doc="topics.user" @iconSize="large" />
|
||||
<DocLink @doc="user" @iconSize="large" />
|
||||
</h2>
|
||||
<p>{{t "resources.user.description"}}</p>
|
||||
<Copyable
|
||||
|
||||
Reference in new issue
Block a user