@@ -23,7 +23,7 @@ export default defineComponent({
2323 elRoot: HTMLElement ,
2424 },
2525 data() {
26- const shouldShowTabBranches = this .elRoot .getAttribute (' data-show-tab-branches' ) === ' true' ;
26+ const shouldShowTabBranches = this .elRoot ! .getAttribute (' data-show-tab-branches' ) === ' true' ;
2727 return {
2828 csrfToken: window .config .csrfToken ,
2929 allItems: [] as ListItem [],
@@ -33,33 +33,33 @@ export default defineComponent({
3333 activeItemIndex: 0 ,
3434 tabLoadingStates: {} as TabLoadingStates ,
3535
36- textReleaseCompare: this .elRoot .getAttribute (' data-text-release-compare' ),
37- textBranches: this .elRoot .getAttribute (' data-text-branches' ),
38- textTags: this .elRoot .getAttribute (' data-text-tags' ),
39- textFilterBranch: this .elRoot .getAttribute (' data-text-filter-branch' ),
40- textFilterTag: this .elRoot .getAttribute (' data-text-filter-tag' ),
41- textDefaultBranchLabel: this .elRoot .getAttribute (' data-text-default-branch-label' ),
42- textCreateTag: this .elRoot .getAttribute (' data-text-create-tag' ),
43- textCreateBranch: this .elRoot .getAttribute (' data-text-create-branch' ),
44- textCreateRefFrom: this .elRoot .getAttribute (' data-text-create-ref-from' ),
45- textNoResults: this .elRoot .getAttribute (' data-text-no-results' ),
46- textViewAllBranches: this .elRoot .getAttribute (' data-text-view-all-branches' ),
47- textViewAllTags: this .elRoot .getAttribute (' data-text-view-all-tags' ),
36+ textReleaseCompare: this .elRoot ! .getAttribute (' data-text-release-compare' )! ,
37+ textBranches: this .elRoot ! .getAttribute (' data-text-branches' )! ,
38+ textTags: this .elRoot ! .getAttribute (' data-text-tags' )! ,
39+ textFilterBranch: this .elRoot ! .getAttribute (' data-text-filter-branch' )! ,
40+ textFilterTag: this .elRoot ! .getAttribute (' data-text-filter-tag' )! ,
41+ textDefaultBranchLabel: this .elRoot ! .getAttribute (' data-text-default-branch-label' )! ,
42+ textCreateTag: this .elRoot ! .getAttribute (' data-text-create-tag' )! ,
43+ textCreateBranch: this .elRoot ! .getAttribute (' data-text-create-branch' )! ,
44+ textCreateRefFrom: this .elRoot ! .getAttribute (' data-text-create-ref-from' )! ,
45+ textNoResults: this .elRoot ! .getAttribute (' data-text-no-results' )! ,
46+ textViewAllBranches: this .elRoot ! .getAttribute (' data-text-view-all-branches' )! ,
47+ textViewAllTags: this .elRoot ! .getAttribute (' data-text-view-all-tags' )! ,
4848
49- currentRepoDefaultBranch: this .elRoot .getAttribute (' data-current-repo-default-branch' ),
50- currentRepoLink: this .elRoot .getAttribute (' data-current-repo-link' ),
51- currentTreePath: this .elRoot .getAttribute (' data-current-tree-path' ),
52- currentRefType: this .elRoot .getAttribute (' data-current-ref-type' ) as GitRefType ,
53- currentRefShortName: this .elRoot .getAttribute (' data-current-ref-short-name' ),
49+ currentRepoDefaultBranch: this .elRoot ! .getAttribute (' data-current-repo-default-branch' )! ,
50+ currentRepoLink: this .elRoot ! .getAttribute (' data-current-repo-link' )! ,
51+ currentTreePath: this .elRoot ! .getAttribute (' data-current-tree-path' )! ,
52+ currentRefType: this .elRoot ! .getAttribute (' data-current-ref-type' )! as GitRefType ,
53+ currentRefShortName: this .elRoot ! .getAttribute (' data-current-ref-short-name' )! ,
5454
55- refLinkTemplate: this .elRoot .getAttribute (' data-ref-link-template' ),
56- refFormActionTemplate: this .elRoot .getAttribute (' data-ref-form-action-template' ),
57- dropdownFixedText: this .elRoot .getAttribute (' data-dropdown-fixed-text' ),
55+ refLinkTemplate: this .elRoot ! .getAttribute (' data-ref-link-template' )! ,
56+ refFormActionTemplate: this .elRoot ! .getAttribute (' data-ref-form-action-template' )! ,
57+ dropdownFixedText: this .elRoot ! .getAttribute (' data-dropdown-fixed-text' )! ,
5858 showTabBranches: shouldShowTabBranches ,
59- showTabTags: this .elRoot .getAttribute (' data-show-tab-tags' ) === ' true' ,
60- allowCreateNewRef: this .elRoot .getAttribute (' data-allow-create-new-ref' ) === ' true' ,
61- showViewAllRefsEntry: this .elRoot .getAttribute (' data-show-view-all-refs-entry' ) === ' true' ,
62- enableFeed: this .elRoot .getAttribute (' data-enable-feed' ) === ' true' ,
59+ showTabTags: this .elRoot ! .getAttribute (' data-show-tab-tags' ) === ' true' ,
60+ allowCreateNewRef: this .elRoot ! .getAttribute (' data-allow-create-new-ref' ) === ' true' ,
61+ showViewAllRefsEntry: this .elRoot ! .getAttribute (' data-show-view-all-refs-entry' ) === ' true' ,
62+ enableFeed: this .elRoot ! .getAttribute (' data-enable-feed' ) === ' true' ,
6363 };
6464 },
6565 computed: {
@@ -92,7 +92,7 @@ export default defineComponent({
9292 }).length ;
9393 },
9494 createNewRefFormActionUrl() {
95- return ` ${this .currentRepoLink }/branches/_new/${this .currentRefType }/${pathEscapeSegments (this .currentRefShortName )} ` ;
95+ return ` ${this .currentRepoLink }/branches/_new/${this .currentRefType }/${pathEscapeSegments (this .currentRefShortName ! )} ` ;
9696 },
9797 },
9898 watch: {
0 commit comments