Skip to content

Commit b1452ee

Browse files
feat(BuildAndErrorPage): improve styling and button (#986)
* feat(BuildAndErrorPage): improve styling and button - Adjust padding and margin values - Replace paragraph with button component * feat(BuildAndErrorPage): improve template structure - Refactor conditional rendering for clarity - Adjust button class for consistency - Clean up script formatting and imports
1 parent 12234f5 commit b1452ee

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed
Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,37 @@
11
<template>
2-
<div class="h-[50vh] py-[32px] flex flex-col items-center justify-center sm:px-[20px]">
3-
<p v-if="['Building','Deploying','Startup'].includes(appStatus)"
4-
class="text-gray-700 text-md"
2+
<div class="h-[50vh] py-8 flex flex-col items-center justify-center sm:px-5">
3+
<p
4+
v-if="['Building', 'Deploying', 'Startup'].includes(appStatus)"
5+
class="text-gray-700 text-md"
56
>
6-
<InstanceInBuilding :loadingText="$t('application_spaces.buildDesc')"/>
7+
<InstanceInBuilding :loadingText="$t('application_spaces.buildDesc')" />
78
</p>
8-
9-
<p v-if="['DeployFailed','BuildingFailed','RuntimeError'].includes(appStatus)"
10-
class="text-gray-700 text-md"
9+
<p
10+
v-if="['DeployFailed', 'BuildingFailed', 'RuntimeError'].includes(appStatus)"
11+
class="text-gray-700 text-md"
1112
>
12-
{{ $t('application_spaces.errorDesc') }}
13-
<p v-if="canWrite"
14-
class="text-brand-700 font-[400] text-xs mt-[12px] cursor-pointer"
15-
@click="showLogs"
16-
>
17-
{{ $t('application_spaces.errorPage.showErrorLogs') }}
18-
</p>
13+
{{ $t('application_spaces.errorDesc') }}
1914
</p>
15+
<CsgButton
16+
v-if="canWrite"
17+
class="btn btn-primary btn-md mt-6"
18+
@click="showLogs"
19+
:name="$t('application_spaces.errorPage.showErrorLogs')"
20+
/>
2021
</div>
2122
</template>
2223

2324
<script setup>
24-
import InstanceInBuilding from '../shared/InstanceInBuilding.vue';
25+
import InstanceInBuilding from '../shared/InstanceInBuilding.vue'
2526
26-
const props = defineProps({
27-
appStatus: String,
28-
canWrite: Boolean
29-
})
27+
const props = defineProps({
28+
appStatus: String,
29+
canWrite: Boolean
30+
})
3031
31-
const emit = defineEmits(['showSpaceLogs']);
32+
const emit = defineEmits(['showSpaceLogs'])
3233
33-
const showLogs = () => {
34-
emit('showSpaceLogs')
35-
}
36-
</script>
34+
const showLogs = () => {
35+
emit('showSpaceLogs')
36+
}
37+
</script>

0 commit comments

Comments
 (0)