Browse Source

feat: add link on systemmessage component

dashboard-layout
ken 7 months ago
parent
commit
ff9316a481
2 changed files with 11 additions and 1 deletions
  1. +10
    -0
      gca-admin-gurusoft-message-dashboard/src/components/SystemMesssages.vue
  2. +1
    -1
      gca-admin-gurusoft-message-dashboard/src/mocks/system_message.json

+ 10
- 0
gca-admin-gurusoft-message-dashboard/src/components/SystemMesssages.vue View File

@ -17,6 +17,16 @@
</div> </div>
<p class="mb-0">{{ msg.message }}</p> <p class="mb-0">{{ msg.message }}</p>
<div v-if="msg.url">
<a
:href="msg.url"
target="_blank"
rel="noopener noreferrer"
class="link-primary small"
>
Les mer her
</a>
</div>
</li> </li>
</ul> </ul>
<p v-else class="text-muted">Loading messages...</p> <p v-else class="text-muted">Loading messages...</p>

+ 1
- 1
gca-admin-gurusoft-message-dashboard/src/mocks/system_message.json View File

@ -5,7 +5,7 @@
"title": "System Maintenance Notification", "title": "System Maintenance Notification",
"message": "Scheduled maintenance will occur this weekend.", "message": "Scheduled maintenance will occur this weekend.",
"description": "The system will be down for maintenance from 10 PM to 2 AM on Saturday.", "description": "The system will be down for maintenance from 10 PM to 2 AM on Saturday.",
"url": "https://status.example.com/maintenance",
"url": "https://google.com",
"tags": [ "tags": [
"maintenance", "maintenance",
"downtime", "downtime",

Loading…
Cancel
Save