Skip to content

Commit

Permalink
refactoring, tab switching handling shouldn't be on the widget level
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Sep 13, 2023
1 parent 7848c7e commit d46801f
Show file tree
Hide file tree
Showing 9 changed files with 553 additions and 52 deletions.
6 changes: 3 additions & 3 deletions docs/backend_api/BAttachment.html
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ <h4 class="name" id="convertToNote"><span class="type-signature"></span>convertT

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="becca_entities_battachment.js.html">becca/entities/battachment.js</a>, <a href="becca_entities_battachment.js.html#line134">line 134</a>
<a href="becca_entities_battachment.js.html">becca/entities/battachment.js</a>, <a href="becca_entities_battachment.js.html#line139">line 139</a>
</li></ul></dd>


Expand Down Expand Up @@ -1770,7 +1770,7 @@ <h4 class="name" id="getContent"><span class="type-signature"></span>getContent<

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="becca_entities_battachment.js.html">becca/entities/battachment.js</a>, <a href="becca_entities_battachment.js.html#line119">line 119</a>
<a href="becca_entities_battachment.js.html">becca/entities/battachment.js</a>, <a href="becca_entities_battachment.js.html#line124">line 124</a>
</li></ul></dd>


Expand Down Expand Up @@ -2815,7 +2815,7 @@ <h6>Properties</h6>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="becca_entities_battachment.js.html">becca/entities/battachment.js</a>, <a href="becca_entities_battachment.js.html#line129">line 129</a>
<a href="becca_entities_battachment.js.html">becca/entities/battachment.js</a>, <a href="becca_entities_battachment.js.html#line134">line 134</a>
</li></ul></dd>


Expand Down
7 changes: 6 additions & 1 deletion docs/backend_api/becca_entities_battachment.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ <h1 class="page-title">Source: becca/entities/battachment.js</h1>
}

decrypt() {
if (this.isProtected &amp;&amp; !this.isDecrypted &amp;&amp; protectedSessionService.isProtectedSessionAvailable()) {
if (!this.isProtected || !this.attachmentId) {
this.isDecrypted = true;
return;
}

if (!this.isDecrypted &amp;&amp; protectedSessionService.isProtectedSessionAvailable()) {
try {
this.title = protectedSessionService.decryptString(this.title);
this.isDecrypted = true;
Expand Down
Loading

0 comments on commit d46801f

Please sign in to comment.