Skip to content

Commit 53a6d5d

Browse files
cases(projects): hide inactive projects
1 parent 57d18d3 commit 53a6d5d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

api/en/projects/device-builder.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
src: /src/projects/device-builder.jpg
88
alt:
99
blank: true
10+
hide: true
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
- title: Device Creator
22
type: builder
3-
created: '2018-07-31'
3+
created: "2018-07-31"
44
desc: BSD — это инструмент, который позволяет создавать простые, но красивые устройства. Экспериментируя с кнопками, вы можете использовать инструмент, чтобы создать, например, смартфон своей мечты.
55
url: https://madeas.github.io/box-shadows/device/
66
img:
77
src: /src/projects/device-builder.jpg
88
alt:
99
blank: true
10+
hide: true

pages/projects/index.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
v-container
2424
v-row
2525
v-col(cols='12', sm='9')
26-
p {{ $t("pages.projects.message") }}
26+
p {{ $t('pages.projects.message') }}
2727

2828
v-col.d-none.d-sm-block.mt-sm-n16.text-center(cols='12', sm='3')
2929
.position-absolute.mt-n16
@@ -78,7 +78,9 @@ export default {
7878
},
7979
computed: {
8080
localeItems() {
81-
return this.projectsLocale ? this.projectsLocale : []
81+
return this.projectsLocale
82+
? this.projectsLocale.filter((e) => !e.hide)
83+
: []
8284
},
8385
},
8486
}

0 commit comments

Comments
 (0)