mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed re-upload of theme not working after deleting
no issue - if a theme was uploaded with the same name as a previously deleted theme it was not being shown in the themes list, and if activated could not be found/seen as active breaking the design menu
This commit is contained in:
parent
6c14e1ea71
commit
a5475f1519
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,9 @@ export default class ConfirmDeleteThemeComponent extends Component {
|
||||||
*deleteThemeTask() {
|
*deleteThemeTask() {
|
||||||
try {
|
try {
|
||||||
yield this.args.data.theme.destroyRecord();
|
yield this.args.data.theme.destroyRecord();
|
||||||
|
// we need to unload from the store here so that uploading another
|
||||||
|
// theme with the same "id" doesn't attempt to update the deleted record
|
||||||
|
this.args.data.theme.unloadRecord();
|
||||||
this.args.close();
|
this.args.close();
|
||||||
return true;
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue