Merge branch 'develop' into copy-button-using-clipboardjs

This commit is contained in:
Randall Morey authored and GitHub committed 2020-09-30 11:29:37 -04:00
commit 4477d1701d
14 files changed
+84 -16

No files matched your search

@@ -32,6 +32,6 @@ export default class FormAccountPasswordIndexComponent extends Component {
submit(fn) {
const password = this.password;
next(() => this.resetPassword());
this.args.model.isNew ? fn(password) : fn();
return this.args.model.isNew ? fn(password) : fn();
}
}
@@ -61,6 +61,7 @@ export default class ScopesScopeAuthMethodsRoute extends Route {
} catch (error) {
//TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
throw error;
}
}
@@ -61,6 +61,7 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsRoute extends Route
} catch (error) {
// TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
throw error;
}
}
+3 -2
View File
@@ -50,14 +50,15 @@ export default class ScopesScopeGroupsRoute extends Route {
const { isNew } = group;
try {
await group.save();
await this.transitionTo('scopes.scope.groups.group', group);
this.refresh();
this.notify.success(
this.intl.t(isNew ? 'notifications.create-success' : 'notifications.save-success')
);
this.transitionTo('scopes.scope.groups.group', group);
} catch (error) {
//TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
throw error;
}
}
@@ -72,7 +73,7 @@ export default class ScopesScopeGroupsRoute extends Route {
await group.destroyRecord();
this.refresh();
this.notify.success(this.intl.t('notifications.delete-success'));
this.transitionTo('scopes.scope.groups');
await this.transitionTo('scopes.scope.groups');
} catch (error) {
//TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
+2 -1
View File
@@ -54,14 +54,15 @@ export default class ScopesScopeOrgsRoute extends Route {
const { isNew } = org;
try {
await org.save();
await this.transitionTo('scopes.scope', org);
this.refresh();
this.notify.success(
this.intl.t(isNew ? 'notifications.create-success' : 'notifications.save-success')
);
this.transitionTo('scopes.scope', org);
} catch (error) {
// TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
throw error;
}
}
}
+2 -1
View File
@@ -66,14 +66,15 @@ export default class ScopesScopeProjectsRoute extends Route {
const { isNew } = project;
try {
await project.save();
await this.transitionTo('scopes.scope.projects.project', project);
this.refresh();
this.notify.success(
this.intl.t(isNew ? 'notifications.create-success' : 'notifications.save-success')
);
this.transitionTo('scopes.scope.projects.project', project);
} catch (error) {
// TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
throw error;
}
}
@@ -44,17 +44,18 @@ export default class ScopesScopeProjectsProjectHostCatalogsRoute extends Route {
const { isNew } = hostCatalog;
try {
await hostCatalog.save();
await this.transitionTo(
'scopes.scope.projects.project.host-catalogs.host-catalog',
hostCatalog
);
this.refresh();
this.notify.success(
this.intl.t(isNew ? 'notifications.create-success' : 'notifications.save-success')
);
this.transitionTo(
'scopes.scope.projects.project.host-catalogs.host-catalog',
hostCatalog
);
} catch (error) {
// TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
throw error;
}
}
@@ -53,13 +53,14 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostSetsRo
'scopes.scope.projects.project.host-catalogs.host-catalog.host-sets.host-set',
hostSet
);
await this.refresh();
this.refresh();
this.notify.success(
this.intl.t(isNew ? 'notifications.create-success' : 'notifications.save-success')
);
} catch (error) {
// TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
throw error;
}
}
@@ -53,13 +53,14 @@ export default class ScopesScopeProjectsProjectHostCatalogsHostCatalogHostsRoute
'scopes.scope.projects.project.host-catalogs.host-catalog.hosts.host',
host
);
await this.refresh();
this.refresh();
this.notify.success(
this.intl.t(isNew ? 'notifications.create-success' : 'notifications.save-success')
);
} catch (error) {
// TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
throw error;
}
}
@@ -44,14 +44,15 @@ export default class ScopesScopeProjectsProjectTargetsRoute extends Route {
const { isNew } = target;
try {
await target.save();
await this.transitionTo('scopes.scope.projects.project.targets.target', target);
this.refresh();
this.notify.success(
this.intl.t(isNew ? 'notifications.create-success' : 'notifications.save-success')
);
this.transitionTo('scopes.scope.projects.project.targets.target', target);
} catch (error) {
// TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
throw error;
}
}
+2 -1
View File
@@ -50,14 +50,15 @@ export default class ScopesScopeRolesRoute extends Route {
const { isNew } = role;
try {
await role.save();
await this.transitionTo('scopes.scope.roles.role', role);
this.refresh();
this.notify.success(
this.intl.t(isNew ? 'notifications.create-success' : 'notifications.save-success')
);
this.transitionTo('scopes.scope.roles.role', role);
} catch (error) {
// TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
throw error;
}
}
+2 -1
View File
@@ -51,14 +51,15 @@ export default class ScopesScopeUsersRoute extends Route {
const { isNew } = user;
try {
await user.save();
await this.transitionTo('scopes.scope.users.user', user);
this.refresh();
this.notify.success(
this.intl.t(isNew ? 'notifications.create-success' : 'notifications.save-success')
);
this.transitionTo('scopes.scope.users.user', user);
} catch (error) {
// TODO: replace with translated strings
this.notify.error(error.message, { closeAfter: null });
throw error;
}
}