Fix prompting to remove Grav itself when removing a package that requires it

This commit is contained in:
Flavio Copes
2016-12-14 10:10:40 +01:00
parent f5477817b7
commit d77a57cfa5
4 changed files with 43 additions and 42 deletions

View File

@@ -3,6 +3,7 @@
1. [](#improved)
* Added a delay before reloading the page when a plugin or theme get installed
* Fix prompting to remove Grav itself when removing a package that requires a specific Grav version
# v1.2.5
## 12/13/2016
@@ -10,7 +11,7 @@
1. [](#new)
* RC released as stable
1. [](#bugfix)
* YAML syntax fixes
* YAML syntax fixes
# v1.2.5-rc.4
## 12/07/2016

View File

@@ -74,7 +74,7 @@ class Packages {
}
static addDependencyToList(type, dependency, slug = '') {
if (['admin', 'form', 'login', 'email'].indexOf(dependency) !== -1) { return; }
if (['admin', 'form', 'login', 'email', 'grav'].indexOf(dependency) !== -1) { return; }
let container = $('.package-dependencies-container');
let text = `${dependency} <a href="#" class="button" data-dependency-slug="${dependency}" data-${type}-action="remove-dependency-package">Remove</a>`;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long