Skip to content

Commit

Permalink
feat(snippets): add fragment coun
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Mar 29, 2022
1 parent 04c51af commit 6fdf620
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/store/snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const useSnippetStore = defineStore('snippets', {
currentContent: state => state.snippet?.content[state.fragment].value,
currentLanguage: state => state.snippet?.content[state.fragment].language,
fragmentLabels: state => state.snippet?.content.map(i => i.label),
fragmentCount: state => state.snippet?.content.length,
isFragmentsShow () {
return this.fragmentLabels?.length > 1
}
Expand Down

0 comments on commit 6fdf620

Please sign in to comment.