diff --git a/app/assets/javascripts/admin/addon/components/admin-flag-item.gjs b/app/assets/javascripts/admin/addon/components/admin-flag-item.gjs index d7fc69a5da4..075c6eba78c 100644 --- a/app/assets/javascripts/admin/addon/components/admin-flag-item.gjs +++ b/app/assets/javascripts/admin/addon/components/admin-flag-item.gjs @@ -88,6 +88,7 @@ export default class AdminFlagItem extends Component { this.dMenu.close(); }); } + @action edit() { this.router.transitionTo("adminConfig.flags.edit", this.args.flag); diff --git a/app/assets/javascripts/admin/addon/components/embeddable-host.js b/app/assets/javascripts/admin/addon/components/embeddable-host.js index 467b928f826..8d4ae85cdfe 100644 --- a/app/assets/javascripts/admin/addon/components/embeddable-host.js +++ b/app/assets/javascripts/admin/addon/components/embeddable-host.js @@ -44,10 +44,12 @@ export default class EmbeddableHost extends Component.extend( edit() { this.set("editToggled", true); } + @action onUserChange(user) { this.set("user", user); } + @action save() { if (this.cantSave) { diff --git a/app/assets/javascripts/admin/addon/components/modal/install-theme.gjs b/app/assets/javascripts/admin/addon/components/modal/install-theme.gjs index 534c6ca63a7..9fd13ca761a 100644 --- a/app/assets/javascripts/admin/addon/components/modal/install-theme.gjs +++ b/app/assets/javascripts/admin/addon/components/modal/install-theme.gjs @@ -46,6 +46,11 @@ export default class InstallThemeModal extends Component { keyGenUrl = this.args.model.keyGenUrl || "/admin/themes/generate_key_pair"; importUrl = this.args.model.importUrl || "/admin/themes/import"; + willDestroy() { + super.willDestroy(...arguments); + this.args.model.clearParams?.(); + } + get showPublicKey() { return this.uploadUrl?.match?.(/^ssh:\/\/.+@.+$|.+@.+:.+$/); } @@ -125,11 +130,6 @@ export default class InstallThemeModal extends Component { ); } - willDestroy() { - super.willDestroy(...arguments); - this.args.model.clearParams?.(); - } - @action async generatePublicKey() { try { diff --git a/app/assets/javascripts/admin/addon/components/site-settings/file-types-list.gjs b/app/assets/javascripts/admin/addon/components/site-settings/file-types-list.gjs index 9ddf7d785cf..2d5ea461726 100644 --- a/app/assets/javascripts/admin/addon/components/site-settings/file-types-list.gjs +++ b/app/assets/javascripts/admin/addon/components/site-settings/file-types-list.gjs @@ -96,6 +96,7 @@ export default class FileTypesList extends Component { this.args.changeValueCallback(newTypes.join(TOKEN_SEPARATOR)); } +