mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-12-18 09:26:17 +00:00
Improve peer details access and update signin footer UI
Peer details button is now hidden for restricted peers, showing a message instead. The signin page footer layout is updated for better alignment, and the client app link is moved to the right with improved styling.
This commit is contained in:
@@ -134,12 +134,17 @@ export default {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer" role="button" @click="$emit('details')">
|
<div class="card-footer" role="button" @click="$emit('details')" v-if="!this.Peer.restricted">
|
||||||
<small class="d-flex align-items-center">
|
<small class="d-flex align-items-center">
|
||||||
<LocaleText t="Details"></LocaleText>
|
<LocaleText t="Details"></LocaleText>
|
||||||
<i class="bi bi-chevron-right ms-auto"></i>
|
<i class="bi bi-chevron-right ms-auto"></i>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="card-footer" v-else>
|
||||||
|
<small class="d-flex align-items-center text-muted">
|
||||||
|
<LocaleText t="Allow access to view details"></LocaleText>
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -172,16 +172,6 @@ export default {
|
|||||||
<RemoteServerList v-else></RemoteServerList>
|
<RemoteServerList v-else></RemoteServerList>
|
||||||
|
|
||||||
<div class="d-flex mt-3" v-if="!this.store.IsElectronApp">
|
<div class="d-flex mt-3" v-if="!this.store.IsElectronApp">
|
||||||
<!-- Left: Client App link -->
|
|
||||||
<a
|
|
||||||
href="/client"
|
|
||||||
class="btn btn-sm btn-outline-secondary"
|
|
||||||
>
|
|
||||||
<i class="bi bi-box-arrow-up-right me-1"></i>
|
|
||||||
<LocaleText t="Client App" />
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<!-- Right: Remote server switch -->
|
|
||||||
<div class="form-check form-switch ms-auto">
|
<div class="form-check form-switch ms-auto">
|
||||||
<input
|
<input
|
||||||
v-model="this.store.CrossServerConfiguration.Enable"
|
v-model="this.store.CrossServerConfiguration.Enable"
|
||||||
@@ -197,10 +187,20 @@ export default {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<small class="text-muted pb-3 d-block w-100 text-center mt-3">
|
<div class="d-flex container-fluid align-items-center my-1 w-100">
|
||||||
WGDashboard {{ this.version }} | Developed with ❤️ by
|
<small class="text-muted">
|
||||||
<a href="https://github.com/donaldzou" target="_blank"><strong>Donald Zou</strong></a>
|
WGDashboard <strong>{{ this.version }}</strong> | Made with ❤️ by
|
||||||
</small>
|
<a href="https://github.com/WGDashboard"
|
||||||
|
class="text-decoration-none text-body"
|
||||||
|
target="_blank"><strong>WGDashboard</strong></a>
|
||||||
|
</small>
|
||||||
|
<a href="./client" target="_blank"
|
||||||
|
class="text-decoration-none ms-auto text-body"
|
||||||
|
style="white-space: nowrap">
|
||||||
|
<small><i class="bi bi-box-arrow-up-right me-1"></i>
|
||||||
|
<LocaleText t="Client App" /></small>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<div class="messageCentre text-body position-absolute d-flex">
|
<div class="messageCentre text-body position-absolute d-flex">
|
||||||
<TransitionGroup name="message" tag="div"
|
<TransitionGroup name="message" tag="div"
|
||||||
class="position-relative flex-sm-grow-0 flex-grow-1 d-flex align-items-end ms-sm-auto flex-column gap-2">
|
class="position-relative flex-sm-grow-0 flex-grow-1 d-flex align-items-end ms-sm-auto flex-column gap-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user