Skip to content

Commit

Permalink
small easter egg
Browse files Browse the repository at this point in the history
-
Ticket: AUT-2286
  • Loading branch information
hawser86 committed Oct 25, 2023
1 parent 1db6a2a commit 610ed83
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/renderer/components/app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,20 @@ <h1 class="e-layout__title">GAP Secret Editor</h1>
</div>

<div class="e-cell e-cell-small" style="margin-left: auto">
<div style="position: relative">
<input
id="search-input"
ref="searchInput"
class="e-input e-input-large"
type="search"
placeholder="Search"
v-model="searchTerm"
style="padding-left: 40px"
/>
<e-icon icon="search" color="disabled" style="position: absolute; left: 12px; top: 7px;" />
</div>
<e-confetti ref="confetti">
<div style="position: relative">
<input
id="search-input"
ref="searchInput"
class="e-input e-input-large"
type="search"
placeholder="Search"
v-model="searchTerm"
style="padding-left: 40px"
/>
<e-icon icon="search" color="disabled" style="position: absolute; left: 12px; top: 7px;" />
</div>
</e-confetti>
</div>
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions src/renderer/components/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,13 @@ export default {
this.$refs.searchInput.select();
}
},
watch: {
searchTerm(term) {
if (term === 'magic') {
this.$refs.confetti.fire();
}
}
},
errorCaptured(error) {
logger.error('unhandled-error', { namespace: this.secretNamespace, name: this.secretName }, error);
},
Expand Down

0 comments on commit 610ed83

Please sign in to comment.