mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Removed unused modal files
no issue - we had two archive-tier modals with the version living in `modals/tiers/archive` being the only one used
This commit is contained in:
parent
4d8c12d2b8
commit
1b4126b6f0
2 changed files with 0 additions and 59 deletions
|
@ -1,17 +0,0 @@
|
|||
{{#if this.product.active}}
|
||||
{{#unless this.product.isNew}}
|
||||
<button
|
||||
type="button"
|
||||
{{on "click" this.handleArchiveTier}}
|
||||
>
|
||||
<span>Archive</span>
|
||||
</button>
|
||||
{{/unless}}
|
||||
{{else}}
|
||||
<button
|
||||
type="button"
|
||||
{{on "click" this.handleUnarchiveTier}}
|
||||
>
|
||||
<span>Reactivate</span>
|
||||
</button>
|
||||
{{/if}}
|
|
@ -1,42 +0,0 @@
|
|||
import Component from '@glimmer/component';
|
||||
import {action} from '@ember/object';
|
||||
import {inject as service} from '@ember/service';
|
||||
|
||||
export default class ArchiveTierComponent extends Component {
|
||||
@service notifications;
|
||||
@service router;
|
||||
@service modals;
|
||||
|
||||
get isActive() {
|
||||
const {product} = this.args;
|
||||
return !!product.active;
|
||||
}
|
||||
|
||||
get product() {
|
||||
return this.args.product;
|
||||
}
|
||||
|
||||
@action
|
||||
handleArchiveTier() {
|
||||
if (!this.product.isNew) {
|
||||
this.modals.open('modals/tiers/archive', {
|
||||
product: this.product,
|
||||
onArchive: this.args.onArchive
|
||||
}, {
|
||||
className: 'fullscreen-modal fullscreen-modal-action fullscreen-modal-wide'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@action
|
||||
handleUnarchiveTier() {
|
||||
if (!this.product.isNew) {
|
||||
this.modals.open('modals/tiers/unarchive', {
|
||||
product: this.product,
|
||||
onUnarchive: this.args.onUnarchive
|
||||
}, {
|
||||
className: 'fullscreen-modal fullscreen-modal-action fullscreen-modal-wide'
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue