Skip to content

Commit fd64e6e

Browse files
authored
Merge pull request #29 from balajidharma/1.x-Changes
Issue #28 - Fixed
2 parents bb2796b + 145878f commit fd64e6e

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

resources/js/Components/NotificationBar.vue

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ const props = defineProps({
1515
color: {
1616
type: String,
1717
required: true
18-
}
18+
},
1919
})
2020
21-
const componentClass = computed(() => props.outline
22-
? colorsOutline[props.color]
23-
: colorsBgLight[props.color]
21+
const componentClass = computed(() =>
22+
props.outline ? colorsOutline[props.color] : colorsBgLight[props.color]
2423
)
2524
2625
const isDismissed = ref(false)
@@ -38,7 +37,7 @@ const hasRightSlot = computed(() => slots.right)
3837
<div
3938
v-if="!isDismissed"
4039
:class="componentClass"
41-
class="px-3 py-6 md:py-3 mb-6 last:mb-0 border rounded transition-colors duration-150"
40+
class="px-3 py-6 md:py-3 mb-6 last:mb-0 border rounded-lg transition-colors duration-150"
4241
>
4342
<BaseLevel>
4443
<div class="flex flex-col md:flex-row items-center">
@@ -50,17 +49,15 @@ const hasRightSlot = computed(() => slots.right)
5049
size="24"
5150
class="md:mr-2"
5251
/>
53-
<span class="text-center md:text-left"><slot /></span>
52+
<span class="text-center md:text-left md:py-2"><slot /></span>
5453
</div>
55-
<slot
56-
v-if="hasRightSlot"
57-
name="right"
58-
/>
54+
<slot v-if="hasRightSlot" name="right" />
5955
<BaseButton
6056
v-else
6157
:icon="mdiClose"
62-
:outline="outline"
6358
small
59+
rounded-full
60+
color="white"
6461
@click="dismiss"
6562
/>
6663
</BaseLevel>

resources/js/Pages/Admin/Menu/Index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function destroy(id) {
6666
/>
6767
</SectionTitleLineWithButton>
6868
<NotificationBar
69+
:key="Date.now()"
6970
v-if="$page.props.flash.message"
7071
color="success"
7172
:icon="mdiAlertBoxOutline"

resources/js/Pages/Admin/Menu/Item/Index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function destroy(id) {
7272
</BaseButtons>
7373
</SectionTitleLineWithButton>
7474
<NotificationBar
75+
:key="Date.now()"
7576
v-if="$page.props.flash.message"
7677
color="success"
7778
:icon="mdiAlertBoxOutline"

resources/js/Pages/Admin/Permission/Index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function destroy(id) {
6565
/>
6666
</SectionTitleLineWithButton>
6767
<NotificationBar
68+
:key="Date.now()"
6869
v-if="$page.props.flash.message"
6970
color="success"
7071
:icon="mdiAlertBoxOutline"

resources/js/Pages/Admin/Role/Index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function destroy(id) {
6565
/>
6666
</SectionTitleLineWithButton>
6767
<NotificationBar
68+
:key="Date.now()"
6869
v-if="$page.props.flash.message"
6970
color="success"
7071
:icon="mdiAlertBoxOutline"

resources/js/Pages/Admin/User/AccountInfo.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const passwordForm = useForm({
5353
/>
5454
</SectionTitleLineWithButton>
5555
<NotificationBar
56+
:key="Date.now()"
5657
v-if="$page.props.flash.message"
5758
color="success"
5859
:icon="mdiAlertBoxOutline"

resources/js/Pages/Admin/User/Index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function destroy(id) {
6565
/>
6666
</SectionTitleLineWithButton>
6767
<NotificationBar
68+
:key="Date.now()"
6869
v-if="$page.props.flash.message"
6970
color="success"
7071
:icon="mdiAlertBoxOutline"

0 commit comments

Comments
 (0)