-
-
Notifications
You must be signed in to change notification settings - Fork 571
[5.x] Run actions from publish forms #6375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
1c644d8
Run actions from the edit entry view
jacksleight de72777
WIP
jacksleight 8611bf8
WIP
jacksleight 7b93bfb
Merge branch 'statamic:3.3' into actions-detail
jacksleight e496f8e
Implement redirect on entry duplication
jacksleight d2f11f1
Merge branch '3.4' into actions-detail
jacksleight 1139a41
Merge branch '4.x' into actions-detail
jacksleight 0729391
Run tests again
jacksleight 10a8179
Merge branch '4.x' into actions-detail
jasonvarga eb9332c
move actions after edit blueprint
jasonvarga 17aaed9
Merge branch '4.x' into actions-detail
jacksleight c74662f
Update duplicate entry action
jacksleight d007a02
Update duplicate entry action
jacksleight 1c7940f
Rename mixin to HasActions
jacksleight 2a62a98
Reanme listActions to itemActions
jacksleight 6a782e1
Rename publish_form context key to view
jacksleight 3b1b1e7
Rename publish_form context key to view
jacksleight 42f80b7
Add view key to all list contexts
jacksleight 099e34e
Rename listActionUrl
jacksleight 6136d19
Add blank callback method
jacksleight 3094e39
Move method
jacksleight 74f640c
Terms support (and some other tweaks)
jacksleight bd93be4
Support users
jacksleight a641a44
Rename callback method
jacksleight 8233b74
Refactor a bunch of thingd
jacksleight f7f74a7
Assets support
jacksleight 25ea12e
Rename filtered actions list
jacksleight d73aa2a
Ensure view context is always set
jacksleight a02baff
User delete redirect
jacksleight d4351d8
Fix error creating new entries and terms
jacksleight 090ef40
Reanme initialReferenceId to just id
jacksleight fc11080
Remove duplicate callback call
jacksleight 42ccbdb
Refactor user extractFromFields
jacksleight bc76eaf
Fix whitespace
jacksleight 42287d1
Fix test
jacksleight 8bd45b9
Ensure actions always have view context param
jacksleight eb0fc4e
Rename menuActions to actionsMenu
jacksleight 9f8091b
Fix whitespace
jacksleight 1c89ed0
Also hide dividers if they're last
jacksleight de03616
Also hide dividers if they're last
jacksleight e380cd1
That shouldn't be there
jacksleight 46a5927
Merge branch '5.x' into actions-detail
jacksleight dee630f
Merge branch '5.x' into actions-detail
jacksleight 7b88dd3
Update title watcher
jacksleight 931456f
Remove copy asset URL action from menu
jacksleight 2327363
Merge branch '5.x' into actions-detail
jasonvarga c5fa2af
use trait
jasonvarga 3fc43bd
unreachable
jasonvarga 84d5b2e
visibility
jasonvarga 617cb14
Providing view of list is unnecessary since its the default in the Ac…
jasonvarga 67396e1
nitpick
jasonvarga 9f2d5be
abstract
jasonvarga fea9ceb
Revert and use arr::get instead
jasonvarga 1a877af
Exclude entry actions in the actions rather than in vue.
jasonvarga 36e6234
Send back data in a consistent way to saving
jasonvarga 5b56433
The actions werent being updated ...
jasonvarga 735322b
Even though we aren't showing the publish actions, update it anyway t…
jasonvarga 3cb96cc
use id from values
jasonvarga 20310b3
extract trait
jasonvarga 19f2816
use term resourse for consistency
jasonvarga 2330504
extract trait
jasonvarga 16d582d
send ids consistent with the other forms
jasonvarga ce01561
exclude user actions in php
jasonvarga cc59cea
grab id from values
jasonvarga c329959
missed from 617cb14a
jasonvarga 625050e
nitpick
jasonvarga b74ce3c
context
jasonvarga 82e68f4
This must have accidentally been re-added in a merge. It was removed …
jasonvarga 5eed6b4
Actions will show a dirty state warning ...
jasonvarga 5e8bf68
Ability to disable the dirty warning text when it doesn't matter, lik…
jasonvarga eda9a0f
Make impersonate confirmable with appropriate messaging which makes m…
jasonvarga 4305646
Make it work on terms and users
jasonvarga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export default { | ||
|
||
methods: { | ||
|
||
actionStarted() { | ||
this.saving = true; | ||
}, | ||
|
||
actionCompleted(successful=null, response) { | ||
this.saving = false; | ||
|
||
if (successful === false) return; | ||
|
||
this.$events.$emit('reset-action-modals'); | ||
|
||
if (response.callback) { | ||
Statamic.$callbacks.call(response.callback[0], ...response.callback.slice(1)); | ||
} | ||
|
||
if (response.message !== false) { | ||
this.$toast.success(response.message || __("Action completed")); | ||
} | ||
|
||
this.afterListActionSuccessfullyCompleted(response); | ||
}, | ||
|
||
} | ||
|
||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.