Commit Graph

488 Commits

Author SHA1 Message Date
Flavio Copes
3677c498f9 Fix redirect after switching language in a page exiting context 2016-04-04 11:13:57 +02:00
Flavio Copes
deaeccfffc After login, redirect to the original URL called
Fix an annoying issue in Admin, when loading an inner page
(`/admin/pages/whatever`) and I'm logged out, after login I'm always
sent to the dashboard, while it should bring to the page I called in
the first place
2016-04-01 12:41:40 +02:00
Flavio Copes
a9bb36eb0c Revert "Temporary change - force GPM refresh for admin"
This reverts commit 637637b350.
2016-03-26 18:06:28 +01:00
Flavio Copes
6d9f9a0886 Merge branch 'develop' into feature/admin-gpm-dependencies 2016-03-26 18:00:19 +01:00
Flavio Copes
57a7a60efd Avoid returning an error in Admin itself, just in the JSON response
This prevents the error to appear on a subsequent admin page reload
2016-03-19 15:41:46 +01:00
Flavio Copes
1044ffebf1 Show a more meaningful error message if post_max_size is too low to handle a media upload 2016-03-19 11:54:19 +01:00
Flavio Copes
2c00618b87 Handle error when trying to remove a package that other packages depend on. 2016-03-17 15:57:10 +01:00
Flavio Copes
fd6f1691af Merge branch 'develop' into feature/admin-gpm-dependencies 2016-03-16 11:46:51 +01:00
Matias Griese
de82a05194 Issue when saving tab-based plugin configuration (#452) 2016-03-16 11:09:48 +02:00
Flavio Copes
637637b350 Temporary change - force GPM refresh for admin
Marked to remove prior to merging the PR
2016-03-15 20:04:56 +01:00
Flavio Copes
6b22932d43 Call GPM::checkPackagesCanBeInstalled() when trying to install/update a package 2016-03-15 19:36:00 +01:00
Flavio Copes
e30a2871e9 Handle errors during install: Install old next-significant-release dependency 2016-03-14 17:52:11 +01:00
Flavio Copes
1da2ce7e8c Detect error while installing packages, show message and cancel button 2016-03-11 15:17:18 +01:00
Flavio Copes
934079fa39 Drop old controller tasks 2016-03-10 22:09:48 +01:00
Flavio Copes
d9ffd603ea More groundwork to allow installing multiple packages at once 2016-03-09 21:19:13 +01:00
Flavio Copes
68a183c05c getDependenciesNeededToInstall accepts an array to ease transition to handling multiple packages 2016-03-09 19:40:23 +01:00
Flavio Copes
c0f73bf6ed Actually remove a package 2016-03-08 11:37:04 +01:00
Flavio Copes
856a325a17 Add taskPackageDependencies, taskInstallDependenciesOfPackage, taskInstallPackage 2016-03-07 11:33:23 +01:00
Flavio Copes
532093e86d Add getDependenciesNeededToInstall, used by the controller 2016-03-07 11:31:18 +01:00
Flavio Copes
2417c88ecd Generalize taskRemovePlugin into taskRemovePackage 2016-03-06 11:57:27 +01:00
Flavio Copes
c9b6b01607 Complete remove plugin task. Handle failure. 2016-03-05 20:57:13 +01:00
Flavio Copes
382fd32916 Steps towards deleting dependencies when removing a plugin 2016-03-05 18:46:41 +01:00
Flavio Copes
33abe0d4ca Merge branch 'develop' into feature/admin-gpm-dependencies 2016-03-05 12:11:55 +01:00
Flavio Copes
707a7b71ed Lint controller 2016-03-05 12:11:13 +01:00
Flavio Copes
419ca2181b Extract getPackageFromGPM 2016-03-04 19:20:57 +01:00
Flavio Copes
aed9f90e16 Return a flat array of direct dependencies from dependenciesThatCanBeRemovedWhenRemoving, not recurse into packages 2016-03-04 19:20:48 +01:00
Flavio Copes
fecb1b179a Rename dependencies to dependenciesThatCanBeRemovedWhenRemoving, be more specific. Remove unused parameter 2016-03-04 18:08:30 +01:00
Djamil Legato
f5e1ea01f2 Merge remote-tracking branch 'origin/develop' into feature/es6_revamp
# Conflicts:
#	themes/grav/css-compiled/template.css
#	themes/grav/css-compiled/template.css.map
#	themes/grav/scss/template/_editor.scss
#	themes/grav/scss/template/_forms.scss
#	themes/grav/scss/template/_remodal.scss
#	themes/grav/templates/partials/base.html.twig
#	themes/grav/templates/partials/dashboard-statistics.html.twig
2016-03-02 11:13:06 -08:00
Djamil Legato
aa73b82832 Implemented Preview button and states abstraction for toolbar 2016-03-01 19:00:29 -08:00
Flavio Copes
97e17500f4 Add dependencies() method in Admin
Generate an array of nested dependencies for a package, optionally
without duplicates
2016-03-01 19:52:24 +01:00
Flavio Copes
4e2be47479 Lint gpm 2016-03-01 19:50:12 +01:00
Gavin Roberts
772172821b Updated taskSave to ensure route is prefixed with a forward slash 2016-02-27 07:54:17 +00:00
Djamil Legato
eed783e1ed Merge branch 'develop' into feature/es6_revamp 2016-02-18 15:49:58 -08:00
Flavio Copes
3efbf05bea Clear cache after adding new folder, fix #393 2016-02-12 10:17:19 +01:00
Flavio Copes
c2a1a7b192 Lint 2016-02-12 10:17:19 +01:00
Djamil Legato
22055f8a19 Merge remote-tracking branch 'origin/develop' into feature/es6_revamp
# Conflicts:
#	languages/en.yaml
#	themes/grav/css-compiled/template.css
#	themes/grav/css-compiled/template.css.map
#	themes/grav/templates/forms/fields/tabs/tabs.html.twig
2016-02-09 13:04:16 -08:00
Djamil Legato
6271eeddff Added new DateTime field 2016-02-05 23:49:39 -08:00
Andy Miller
f950183a39 typo in use 2016-02-04 15:42:43 -07:00
Flavio Copes
b68a12fd11 Merge branch 'develop' into feature/new-folder-modal 2016-02-04 21:05:00 +01:00
Flavio Copes
0d9a3e4bdc GravTrait changes in Admin 2016-02-04 20:59:11 +01:00
Flavio Copes
d200f7a72c 🎨 Code hints, docblocks 2016-02-04 20:59:11 +01:00
Flavio Copes
30a08f6203 🚧 Simplify admin translate method 2016-02-04 20:59:11 +01:00
Flavio Copes
5170a9d2c4 🎨 Drop unused code, format, PHPDoc 2016-02-04 20:59:11 +01:00
Djamil Legato
35fa588438 Reworked Admin JS with ES6 2016-02-01 11:27:34 -08:00
Flavio Copes
c62fb6bdb5 Fix #390 Incorrect number of pages being displayed 2016-01-28 14:03:53 +01:00
Matias Griese
d902c9f8b4 Improve support for user defined blueprints in Configuration 2016-01-22 21:52:25 +02:00
Matias Griese
77639e71cf Merge branch 'develop' of https://github.com/getgrav/grav-plugin-admin into develop
# Conflicts:
#	classes/controller.php
2016-01-21 09:51:35 +02:00
Matias Griese
0424975657 Improve type hints 2016-01-21 09:46:38 +02:00
Flavio Copes
08135ee843 Fix PHP error happening when uploading file without extension if the JS dropzone uploader is configured to allow empty file extensions 2016-01-16 18:49:42 +01:00
Flavio Copes
f068b48fce Don't reveal Grav filesystem path when trying to delete non-existing images 2016-01-16 18:30:26 +01:00