Skip to content

Commit bc694d1

Browse files
committed
notification ui added
1 parent d034f7f commit bc694d1

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

vue-frontend/warehouse-frontend/src/components/AppNavbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<span class="navbar-brand">
77
<img src="@/assets/logo_new.png" alt="Turing Trust Logo" height="30">
88
</span>
9-
<button class="logout btn btn-link text-white" @click="logout"><i class="bi bi-box-arrow-left"></i> Log out</button>
9+
<button class="logout btn btn-link text-white" @click="logout"><i class="bi bi-box-arrow-left" style="padding-right: 5px;"></i>Log out</button>
1010
</nav>
1111
</template>
1212

vue-frontend/warehouse-frontend/src/views/TransactionPage.vue

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ export default {
2727

2828
<template>
2929

30+
<div class="toast-container">
31+
<div id="toastNotification" class="toast align-items-center text-white bg-warning border-0 show" role="alert">
32+
<div class="toast-header" style="color: #664D03">
33+
<i class="bi bi-exclamation-circle" style="padding-right: 5px;"></i> Cannot assign asset SB001234 to parent:<br>
34+
<button type="button" class="btn-close me-2 m-auto" data-bs-dismiss="toast"></button>
35+
</div>
36+
<div class="toast-body d-flex justify-content-between align-items-center">
37+
<div>
38+
<span>Current asset status: <strong>Registered</strong></span><br>
39+
<span>Expected status: <strong>Boxed for shipping</strong></span>
40+
</div>
41+
<button type="button" class="btn btn-grey btn-sm ms-3">Force</button>
42+
</div>
43+
</div>
44+
</div>
45+
3046
<div class="container content mt-4">
3147
<div class="mb-3" style="margin-top: 15px;">
3248
<h3 class="fw-bold" style="padding-bottom: 10px;">Work in progress palleting</h3>
@@ -207,4 +223,17 @@ thead {
207223
border-color: #04A27D;
208224
color: #fff;
209225
}
226+
.toast-container {
227+
top: 67px; /* Move 20px from the top */
228+
right: 30px; /* Move 30px from the right */
229+
position: fixed;
230+
z-index: 1050; /* Ensure it stays above other content */
231+
}
232+
.toast {
233+
width: 450px !important; /* Set fixed width */
234+
}
235+
.btn-grey{
236+
background-color: #6C757D;
237+
color: #fff;
238+
}
210239
</style>

0 commit comments

Comments
 (0)