forked from whitecube/nova-flexible-content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request whitecube#509 from LTKort/l11-compatibility
L11 compatibility
- Loading branch information
Showing
7 changed files
with
117 additions
and
88 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/**! | ||
* Sortable 1.15.0 | ||
* Sortable 1.15.2 | ||
* @author RubaXa <[email protected]> | ||
* @author owenm <[email protected]> | ||
* @license MIT | ||
|
This file contains 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 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 |
---|---|---|
@@ -1,67 +1,61 @@ | ||
<template> | ||
<Modal :show="true"> | ||
<form | ||
@submit.prevent="$emit('confirm')" | ||
class="mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden" | ||
> | ||
<slot> | ||
<ModalHeader v-text="__('Delete Group')" /> | ||
<ModalContent> | ||
<p class="leading-normal" v-if="message"> | ||
{{ message }} | ||
</p> | ||
<p class="leading-normal" v-else> | ||
{{ __('Are you sure you want to delete this group?') }} | ||
</p> | ||
</ModalContent> | ||
</slot> | ||
<form | ||
@submit.prevent="$emit('confirm')" | ||
class="mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden" | ||
> | ||
<slot> | ||
<ModalHeader v-text="__('Delete Group')" /> | ||
<ModalContent> | ||
<p class="leading-normal" v-if="message"> | ||
{{ message }} | ||
</p> | ||
<p class="leading-normal" v-else> | ||
{{ __("Are you sure you want to delete this group?") }} | ||
</p> | ||
</ModalContent> | ||
</slot> | ||
|
||
<ModalFooter> | ||
<div class="ml-auto"> | ||
<link-button | ||
type="button" | ||
data-testid="cancel-button" | ||
dusk="cancel-delete-button" | ||
@click.prevent="this.$emit('close')" | ||
class="mr-3" | ||
> | ||
{{ no }} | ||
</link-button> | ||
<ModalFooter> | ||
<div class="ml-auto"> | ||
<link-button | ||
type="button" | ||
data-testid="cancel-button" | ||
dusk="cancel-delete-button" | ||
@click.prevent="this.$emit('close')" | ||
class="mr-3" | ||
> | ||
{{ no }} | ||
</link-button> | ||
|
||
<Button | ||
type="submit" | ||
ref="confirmButton" | ||
dusk="confirm-delete-button" | ||
:loading="working" | ||
:disabled="working" | ||
state="danger" | ||
:label="yes" | ||
/> | ||
</div> | ||
</ModalFooter> | ||
</form> | ||
<danger-button | ||
ref="confirmButton" | ||
dusk="confirm-delete-button" | ||
:processing="working" | ||
:disabled="working" | ||
type="submit" | ||
> | ||
{{ yes }} | ||
</danger-button> | ||
</div> | ||
</ModalFooter> | ||
</form> | ||
</Modal> | ||
</template> | ||
|
||
<script> | ||
import { Button } from 'laravel-nova-ui' | ||
export default { | ||
props: ["message", "yes", "no"], | ||
export default { | ||
components: { | ||
Button, | ||
}, | ||
emits: ["close", "confirm"], | ||
props: ['message', 'yes', 'no'], | ||
emits: ['close', 'confirm'], | ||
/** | ||
* Mount the component. | ||
*/ | ||
mounted() { | ||
this.$nextTick(() => { | ||
// this.$refs.confirmButton.button.focus() | ||
}) | ||
}, | ||
} | ||
/** | ||
* Mount the component. | ||
*/ | ||
mounted() { | ||
this.$nextTick(() => { | ||
// this.$refs.confirmButton.button.focus() | ||
}); | ||
}, | ||
}; | ||
</script> |
This file contains 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 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