File tree Expand file tree Collapse file tree 8 files changed +14
-14
lines changed
Expand file tree Collapse file tree 8 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ let preparedActions = computed(() => {
3030 return prepareActions (actions .value , confirmableActions .value );
3131});
3232
33- let preparedPinnedActions = computed (() => {
34- return prepareActions (actions .value ? .filter (action => action .pinned ), confirmableActions .value );
33+ let preparedQuickActions = computed (() => {
34+ return prepareActions (actions .value ? .filter (action => action .quick ), confirmableActions .value );
3535});
3636
3737let errors = ref ({});
@@ -73,7 +73,7 @@ function loadActions() {
7373}
7474
7575const slots = useSlots ();
76- const showPinnedActions = computed (() => preparedPinnedActions .value && !! slots .pinned );
76+ const showQuickActions = computed (() => preparedQuickActions .value && !! slots .quick );
7777
7878defineExpose ({
7979 preparedActions,
@@ -92,5 +92,5 @@ defineExpose({
9292 @confirmed= " runAction"
9393 / >
9494 < slot : actions= " preparedActions" : load- actions= " loadActions" / >
95- < slot v- if = " showPinnedActions " name= " pinned " : actions= " preparedPinnedActions " / >
95+ < slot v- if = " showQuickActions " name= " quick " : actions= " preparedQuickActions " / >
9696< / template>
Original file line number Diff line number Diff line change 4848 <ui-button inset size =" sm" v-if =" allowDeleting && canRunAction('delete')" @click =" runAction(actions, 'delete')" icon =" trash" variant =" ghost" class =" [& _svg]:!opacity-45" :text =" __('Delete')" />
4949
5050 <ui-button
51- v-for =" action in pinnedActions (actions)"
51+ v-for =" action in quickActions (actions)"
5252 inset
5353 size =" sm"
5454 @click =" action.run"
@@ -504,8 +504,8 @@ export default {
504504 return actions .filter ((action ) => ! buttonActions .includes (action .handle ));
505505 },
506506
507- pinnedActions (actions ) {
508- return actions .filter ((action ) => action .pinned );
507+ quickActions (actions ) {
508+ return actions .filter ((action ) => action .quick );
509509 },
510510 },
511511};
Original file line number Diff line number Diff line change 3636 </Dropdown >
3737 </template >
3838
39- <template #pinned =" { actions } " >
39+ <template #quick =" { actions } " >
4040 <Button
4141 v-for =" action in actions"
4242 :key =" action.handle"
Original file line number Diff line number Diff line change 2929 </DropdownMenu >
3030 </Dropdown >
3131 </template >
32- <template #pinned =" { actions } " >
32+ <template #quick =" { actions } " >
3333 <Button
3434 v-for =" action in actions"
3535 :key =" action.handle"
Original file line number Diff line number Diff line change 3232 </Dropdown >
3333 </template >
3434
35- <template #pinned =" { actions } " >
35+ <template #quick =" { actions } " >
3636 <Button
3737 v-for =" action in actions"
3838 :key =" action.handle"
Original file line number Diff line number Diff line change 2727 </Dropdown >
2828 </template >
2929
30- <template #pinned =" { actions } " >
30+ <template #quick =" { actions } " >
3131 <Button
3232 v-for =" action in actions"
3333 :key =" action.handle"
Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ export default {
387387 </DropdownMenu >
388388 </Dropdown >
389389 </template >
390- <template #pinned =" { actions } " >
390+ <template #quick =" { actions } " >
391391 <Button
392392 v-for =" action in actions"
393393 :key =" action.handle"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ abstract class Action implements Arrayable
1717 protected $ items ;
1818 protected $ confirm = true ;
1919 protected $ dangerous = false ;
20- protected $ pinned = false ;
20+ protected $ quick = false ;
2121 protected $ fields = [];
2222 protected $ context = [];
2323 protected $ runnable = true ;
@@ -163,7 +163,7 @@ public function toArray()
163163 'bypassesDirtyWarning ' => $ this ->bypassesDirtyWarning (),
164164 'requiresElevatedSession ' => $ this ->requiresElevatedSession (),
165165 'dangerous ' => $ this ->dangerous ,
166- 'pinned ' => $ this ->pinned ,
166+ 'quick ' => $ this ->quick ,
167167 'fields ' => $ this ->fields ()->toPublishArray (),
168168 'values ' => $ this ->fields ()->preProcess ()->values (),
169169 'meta ' => $ this ->fields ()->meta (),
You can’t perform that action at this time.
0 commit comments