Skip to content

Commit

Permalink
Merge branch 'develop-7.x' into XRDDEV-1711
Browse files Browse the repository at this point in the history
  • Loading branch information
jhyoty committed Sep 21, 2021
2 parents e4e5d90 + 6d27dd3 commit 3903afa
Show file tree
Hide file tree
Showing 21 changed files with 372 additions and 584 deletions.
2 changes: 1 addition & 1 deletion src/centralserver/admin-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
<v-tooltip top>
<template #activator="{ on, attrs }">
<div v-bind="attrs" v-on="on">
<icon-svg v-bind="attrs" :icon-name="status" v-on="on"></icon-svg>
<xrd-icon-base v-bind="attrs" v-on="on">
<!-- Decide what icon to show -->
<XrdIconChangeOwner v-if="status === 'change_owner'" />
<XrdIconAddUser v-if="status === 'register_client'" />
<XrdIconRemoveUser v-if="status === 'delete_client'" />
<XrdIconRemoveCertificate v-if="status === 'delete_certificate'" />
<XrdIconAddCertificate v-if="status === 'register_certificate'" />
</xrd-icon-base>
</div>
</template>
<span>{{ getStatusText() }}</span>
Expand All @@ -38,41 +45,14 @@

<script lang="ts">
import Vue from 'vue';
import IconSvg from './IconSvg.vue';
export default Vue.extend({
components: {
IconSvg,
},
props: {
status: {
type: String,
default: undefined,
},
},
computed: {
iconName(): string {
if (!this.status) {
return '';
}
switch (this.status) {
case 'change_owner':
return 'icon-ChangeOwner';
case 'delete_certificate':
return 'icon-RemoveCertificate';
case 'delete_client':
return 'icon-RemoveUser';
case 'register_certificate':
return 'icon-AddCertificate';
case 'register_client':
return 'icon-AddUser';
default:
return 'error';
}
},
},
methods: {
getStatusText() {
if (!this.status) {
Expand Down Expand Up @@ -105,14 +85,4 @@ export default Vue.extend({
flex-direction: row;
align-items: center;
}
.status-text {
font-style: normal;
font-weight: bold;
font-size: 12px;
line-height: 16px;
color: $XRoad-WarmGrey100;
margin-left: 2px;
text-transform: uppercase;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
<v-btn
icon
color="primary"
data-test="close-snackbar"
data-test="close-alert"
@click="closeError(notification.timeAdded)"
>
<xrd-icon-base><XrdIconClose /></xrd-icon-base>
Expand Down
2 changes: 1 addition & 1 deletion src/centralserver/admin-ui/src/components/ui/Snackbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
data-test="close-snackbar"
@click="closeSuccess(notification.timeAdded)"
>
<v-icon dark>icon-Close</v-icon>
<xrd-icon-base><XrdIconClose /> </xrd-icon-base>
</v-btn>
</div>
</v-snackbar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
<tr>
<th>
{{ $t('members.member.subsystems.subsystemcode') }}
<v-icon class="mb-1">icon-Sorting-arrow</v-icon>

<xrd-icon-base><XrdIconSortingArrow /> </xrd-icon-base>
</th>
<th>{{ $t('members.member.subsystems.servercode') }}</th>
<th>{{ $t('members.member.subsystems.serverOwner') }}</th>
Expand All @@ -55,9 +56,10 @@
<td class="xrd-clickable">NIIS-SS1</td>
<td></td>
<td class="status">
<v-icon :small="true" :color="colors.Success100"
>icon-Checked</v-icon
>
<xrd-icon-base
><XrdIconChecked :color="colors.Success100" />
</xrd-icon-base>

Registered
</td>
<td class="subsystem-actions">
Expand All @@ -68,7 +70,9 @@
<td>RR</td>
<td></td>
<td></td>
<td class="status"><v-icon>icon-Error</v-icon> Unregistered</td>
<td class="status">
<xrd-icon-base><XrdIconError /> </xrd-icon-base> Unregistered
</td>
<td class="subsystem-actions">
<span class="xrd-clickable">Register</span>
<span class="xrd-clickable">Delete</span>
Expand All @@ -79,9 +83,9 @@
<td class="xrd-clickable">NIIS-SS1</td>
<td class="xrd-clickable">NIIS</td>
<td class="status">
<v-icon :small="true" :color="colors.Success100"
>icon-Checked</v-icon
>
<xrd-icon-base
><XrdIconChecked :color="colors.Success100" />
</xrd-icon-base>
Registered
</td>
<td class="subsystem-actions">
Expand All @@ -92,9 +96,9 @@
<td class="xrd-clickable">NIIS-FUTU</td>
<td class="xrd-clickable">FUTU</td>
<td class="status">
<v-icon :small="true" :color="colors.Success100"
>icon-In-progress</v-icon
>
<xrd-icon-base
><XrdIconInProgress :color="colors.Success100" />
</xrd-icon-base>
Pending approval
</td>
<td class="subsystem-actions">
Expand Down

0 comments on commit 3903afa

Please sign in to comment.