1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

fix replace depricated name with id

This commit is contained in:
Damodar Lohani 2021-07-26 11:58:14 +05:45
parent 7bf7300aba
commit 47fa14310c
7 changed files with 9 additions and 15 deletions

View file

@ -15,7 +15,7 @@
data-ls-bind="{{router.params.project}}"
data-unsync="1"
data-ls-loop="projects.projects" data-ls-as="option" aria-label="Switch Project">
<option data-ls-attrs="value={{option.$id}}" data-ls-bind="{{option.name}}"></option>
<option data-ls-attrs="value={{option.$id}}" data-ls-bind="{{option.$id}}"></option>
</select>
</label>
</div>

View file

@ -17,7 +17,7 @@ $maxCells = 10;
<br />
<span data-ls-bind="{{project-collection.name}}">&nbsp;&nbsp;</span>
<span data-ls-bind="{{project-collection.$id}}">&nbsp;&nbsp;</span>
</h1>
</div>
@ -508,7 +508,7 @@ $maxCells = 10;
<div data-ls-loop="project-collections.collections" data-ls-as="project" data-ls-key="$index2" class="tiles cell-3 margin-bottom-negative">
<div class="margin-bottom" data-ls-if="{{project.$id}} != {{router.params.id}}">
<input type="checkbox" name="list" data-ls-attrs="value={{project.$id}},id={{project.$id}}" data-ls-bind="{{rule.list}}" /> <label data-ls-attrs="for={{project.$id}}" data-ls-bind="{{project.name}}"></label>
<input type="checkbox" name="list" data-ls-attrs="value={{project.$id}},id={{project.$id}}" data-ls-bind="{{rule.list}}" /> <label data-ls-attrs="for={{project.$id}}" data-ls-bind="{{project.$id}}"></label>
</div>
</div>
</script>
@ -519,7 +519,7 @@ $maxCells = 10;
<div data-ls-loop="project-collections.collections" data-ls-as="project" data-ls-key="$index2" class="tiles cell-3 margin-bottom-negative">
<div class="margin-bottom" data-ls-if="{{project.$id}} != {{router.params.id}}">
<input type="radio" data-ls-attrs="value={{project.$id}},id=[{{rule.$id}}].{{project.$id}},name=[{{rule.$id}}].list" data-ls-bind="{{rule.list|firstElement}}" data-cast-to="array" required />
<label data-ls-attrs="for={{project.$id}}"data-ls-bind="{{project.name}}"></label>
<label data-ls-attrs="for={{project.$id}}"data-ls-bind="{{project.$id}}"></label>
</div>
</div>
</script>

View file

@ -18,7 +18,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true);
<a data-ls-attrs="href=/console/functions?project={{router.params.project}}" class="back text-size-small link-return-animation--start"><i class="icon-left-open"></i> Functions</a>
<br />
<span data-ls-bind="{{project-function.name}}&nbsp;">&nbsp;</span>
<span data-ls-bind="{{project-function.$id}}&nbsp;">&nbsp;</span>
</h1>
</div>
@ -448,9 +448,6 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true);
<div class="box">
<section class="margin-bottom-large">
<label for="name">Name</label>
<input name="name" id="function-name" type="text" autocomplete="off" data-ls-bind="{{project-function.name}}" data-forms-text-direction required placeholder="Function Name" maxlength="128" />
<label for="execute">Execute Access <span class="tooltip small" data-tooltip="Choose who can execute this function using the client API."><i class="icon-info-circled"></i></span> <span class="text-size-small">(<a data-ls-attrs="href={{env.HOME}}/docs/permissions" target="_blank" rel="noopener">Learn more</a>)</span></label>
<input type="hidden" id="execute" name="execute" data-forms-tags data-cast-to="json" data-ls-bind="{{project-function.$permissions.execute}}" placeholder="User ID, Team ID or Role" />
<div class="text-fade text-size-xs margin-top-negative-small margin-bottom">Add * for wildcard access</div>

View file

@ -11,7 +11,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true);
data-name="console-project"
data-param-project-id="{{router.params.project}}"
data-scope="console">
<span class="title" data-ls-bind="{{console-project.name}}">&nbsp;</span>&nbsp;&nbsp;
<span class="title" data-ls-bind="{{console-project.$id}}">&nbsp;</span>&nbsp;&nbsp;
</h1>
<ul class="desktops-only margin-top-negative-small margin-bottom clear">

View file

@ -51,9 +51,6 @@ $smtpEnabled = $this->getParam('smtpEnabled', false);
data-failure-param-alert-classname="error">
<input name="$id" type="hidden" data-ls-bind="{{console-project.$id}}" />
<label for="name">Name</label>
<input name="name" id="name" type="text" autocomplete="off" data-ls-bind="{{console-project.name}}" data-forms-text-direction required maxlength="128" />
<label for="logo">Project Logo</label>

View file

@ -230,7 +230,7 @@ $auth = $this->getParam('auth', []);
<tbody data-ls-loop="project-teams.teams" data-ls-as="team">
<tr>
<td class="hide">
<img src="" data-ls-attrs="src={{team.name|avatar}}" data-size="45" alt="Collection Avatar" class="avatar margin-end pull-start" loading="lazy" width="30" height="30" />
<img src="" data-ls-attrs="src={{team.$id|avatar}}" data-size="45" alt="Collection Avatar" class="avatar margin-end pull-start" loading="lazy" width="30" height="30" />
</td>
<td data-title="ID: ">
<a data-ls-attrs="href=/console/users/teams/team?id={{team.$id}}&project={{router.params.project}}" data-ls-bind="{{team.$id}}"></a>

View file

@ -11,8 +11,8 @@
<a data-ls-attrs="href=/console/users/teams?project={{router.params.project}}" class="back text-size-small"><i class="icon-left-open"></i> Teams</a>
<br />
<span data-ls-bind="{{team.name}}">&nbsp;</span>
<span data-ls-if="{{team.name|escape}} === ''">Unknown</span>
<span data-ls-bind="{{team.$id}}">&nbsp;</span>
<span data-ls-if="{{team.$id|escape}} === ''">Unknown</span>
</h1>
</div>