Skip to content

Commit a5448c9

Browse files
mbrandenburgerbvavala
authored andcommitted
Display published Results correctly
Remove the lock from the published results in the ledger viewer as this data is not encrypted anymore. Signed-off-by: bur <[email protected]>
1 parent 76019b2 commit a5448c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

demo/client/frontend/src/components/LedgerHistory.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ SPDX-License-Identifier: Apache-2.0
5353
bordered
5454
offset-y="18"
5555
offset-x="18"
56+
:value="isLocked(item.func)"
5657
>
5758
<v-chip
5859
class="ma-2"
@@ -146,6 +147,11 @@ export default {
146147
},
147148
148149
methods: {
150+
isLocked(f) {
151+
const publicData = ["publishAssignmentResults"];
152+
return !publicData.includes(f);
153+
},
154+
149155
...mapActions({
150156
fetchUsers: "users/fetchUsers",
151157
fetchTransactions: "ledger/fetchTransactions"

0 commit comments

Comments
 (0)