Skip to content

Issue #28 - Fixed #29

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 1 commit into from
Jul 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions resources/js/Components/NotificationBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ const props = defineProps({
color: {
type: String,
required: true
}
},
})

const componentClass = computed(() => props.outline
? colorsOutline[props.color]
: colorsBgLight[props.color]
const componentClass = computed(() =>
props.outline ? colorsOutline[props.color] : colorsBgLight[props.color]
)

const isDismissed = ref(false)
Expand All @@ -38,7 +37,7 @@ const hasRightSlot = computed(() => slots.right)
<div
v-if="!isDismissed"
:class="componentClass"
class="px-3 py-6 md:py-3 mb-6 last:mb-0 border rounded transition-colors duration-150"
class="px-3 py-6 md:py-3 mb-6 last:mb-0 border rounded-lg transition-colors duration-150"
>
<BaseLevel>
<div class="flex flex-col md:flex-row items-center">
Expand All @@ -50,17 +49,15 @@ const hasRightSlot = computed(() => slots.right)
size="24"
class="md:mr-2"
/>
<span class="text-center md:text-left"><slot /></span>
<span class="text-center md:text-left md:py-2"><slot /></span>
</div>
<slot
v-if="hasRightSlot"
name="right"
/>
<slot v-if="hasRightSlot" name="right" />
<BaseButton
v-else
:icon="mdiClose"
:outline="outline"
small
rounded-full
color="white"
@click="dismiss"
/>
</BaseLevel>
Expand Down
1 change: 1 addition & 0 deletions resources/js/Pages/Admin/Menu/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function destroy(id) {
/>
</SectionTitleLineWithButton>
<NotificationBar
:key="Date.now()"
v-if="$page.props.flash.message"
color="success"
:icon="mdiAlertBoxOutline"
Expand Down
1 change: 1 addition & 0 deletions resources/js/Pages/Admin/Menu/Item/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function destroy(id) {
</BaseButtons>
</SectionTitleLineWithButton>
<NotificationBar
:key="Date.now()"
v-if="$page.props.flash.message"
color="success"
:icon="mdiAlertBoxOutline"
Expand Down
1 change: 1 addition & 0 deletions resources/js/Pages/Admin/Permission/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function destroy(id) {
/>
</SectionTitleLineWithButton>
<NotificationBar
:key="Date.now()"
v-if="$page.props.flash.message"
color="success"
:icon="mdiAlertBoxOutline"
Expand Down
1 change: 1 addition & 0 deletions resources/js/Pages/Admin/Role/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function destroy(id) {
/>
</SectionTitleLineWithButton>
<NotificationBar
:key="Date.now()"
v-if="$page.props.flash.message"
color="success"
:icon="mdiAlertBoxOutline"
Expand Down
1 change: 1 addition & 0 deletions resources/js/Pages/Admin/User/AccountInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const passwordForm = useForm({
/>
</SectionTitleLineWithButton>
<NotificationBar
:key="Date.now()"
v-if="$page.props.flash.message"
color="success"
:icon="mdiAlertBoxOutline"
Expand Down
1 change: 1 addition & 0 deletions resources/js/Pages/Admin/User/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function destroy(id) {
/>
</SectionTitleLineWithButton>
<NotificationBar
:key="Date.now()"
v-if="$page.props.flash.message"
color="success"
:icon="mdiAlertBoxOutline"
Expand Down