Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
fix(proposal/_id): display changed instead of new for change requests
Browse files Browse the repository at this point in the history
  • Loading branch information
vhf committed Oct 28, 2019
1 parent 0b4d99c commit 5a77dd1
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 10 deletions.
23 changes: 20 additions & 3 deletions components/proposal/ClassForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,16 @@

<div class="columns">
<div class="column is-8">
<h2 class="title is-2">
<span v-show="!edit">New</span> Class <span v-show="clss['label']">"<em>{{ clss['label'] }}</em>"</span></h2>
<h2
v-if="clss['isEdit']"
class="title is-2">
<span v-show="!edit">Changed</span> Class <span v-show="clss['label']">"<em>{{ clss['label'] }}</em>"</span>
</h2>
<h2
v-else
class="title is-2">
<span v-show="!edit">New</span> Class <span v-show="clss['label']">"<em>{{ clss['label'] }}</em>"</span>
</h2>
<p
v-show="clss['iri']"
class="subtitle is-1">
Expand Down Expand Up @@ -229,7 +237,16 @@
<div class="box">
<div class="columns">
<div class="column is-8">
<h2 class="subtitle collapsed-title">New Class "<em>{{ clss['label'] }}</em>"</h2>
<h2
v-if="clss['isEdit']"
class="subtitle collapsed-title">
Changed Class "<em>{{ clss['label'] }}</em>"
</h2>
<h2
v-else
class="subtitle collapsed-title">
New Class "<em>{{ clss['label'] }}</em>"
</h2>
</div>
<div class="column">
<button
Expand Down
3 changes: 3 additions & 0 deletions components/proposal/ProgressionBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ export default {
if (this.edit) {
return ''
}
if (this.obj.isEdit) {
return 'Changed '
}
return 'New '
},
obj () {
Expand Down
20 changes: 18 additions & 2 deletions components/proposal/PropertyForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@
<div class="box">
<div class="columns">
<div class="column is-8">
<h2 class="title is-2">
<h2
v-if="prop['isEdit']"
class="title is-2">
<span v-show="!prop['isEdit']">Changed</span> Property <span v-show="prop['label']">"<em>{{ prop['label'] }}</em>"</span>
</h2>
<h2
v-else
class="title is-2">
<span v-show="!prop['isEdit']">New</span> Property <span v-show="prop['label']">"<em>{{ prop['label'] }}</em>"</span>
</h2>
<p
Expand Down Expand Up @@ -278,7 +285,16 @@
<div class="box">
<div class="columns">
<div class="column is-8">
<h2 class="subtitle collapsed-title">New Property "<em>{{ prop['label'] }}</em>"</h2>
<h2
v-if="prop['isEdit']"
class="subtitle collapsed-title">
Changed Property "<em>{{ prop['label'] }}</em>"
</h2>
<h2
v-else
class="subtitle collapsed-title">
New Property "<em>{{ prop['label'] }}</em>"
</h2>
</div>
<div class="column">
<button
Expand Down
14 changes: 9 additions & 5 deletions pages/proposal/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
<div class="columns">
<div class="column is-3" />
<div class="column">
<h1 class="title is-1">
New {{ type }} Request<span
v-show="obj.label">:
"{{ obj.label }}"
</span>
<h1
v-if="obj.isEdit"
class="title is-1">
Change {{ type }} Request: "{{ obj.label }}"
</h1>
<h1
v-else
class="title is-1">
New {{ type }} Request: "{{ obj.label }}"
</h1>
<h2 class="subtitle is-1">
On <span class="title-url">{{ obj.parentStructureIRI }}</span>
Expand Down

0 comments on commit 5a77dd1

Please sign in to comment.