Skip to content

Commit 217a577

Browse files
committed
fix: replaced sessionUser and sessionOrg with localstorage attributes
1 parent cc15e70 commit 217a577

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

demo/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
<body>
1313

1414
<!-- Avatar -->
15+
<div localstorage-get="user_id" localstorage-key="userId" localstorage-target=".avatar-wrapper"></div>
1516
<div class="avatar-wrapper margin:5px_0px margin-right:10px">
1617
<a class="avatar round" actions="pass, openModal" modal-src="render.html" pass-collection="modules" pass-document_id="5dd010bccbc25f0cdb1a4d9f" pass_to="render" modal-width="300px" modal-height="375px" modal-color="#229954">
17-
<span collection="users" document_id="" name="name" class="sessionUser_Id width:12px avatar-name">B</span>
18-
<span collection="users" document_id="" name="profile_image" class="sessionUser_Id avatar-image">
18+
<span collection="users" document_id="{{userId}}" name="name" class="width:12px avatar-name">B</span>
19+
<span collection="users" document_id="{{userId}}" name="profile_image" class="avatar-image">
1920
<img src="/_static/Velazquez.jpg" onerror="this.style.display='none'"/>
2021
</span>
2122
</a>

0 commit comments

Comments
 (0)