Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions elements/hax-body/lib/hax-plate-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class HaxPlateContext extends I18NMixin(HaxContextBehaviors(LitElement)) {
}
render() {
return html`
<hax-toolbar always-expanded ?hidden=${HAXStore.isPlatformAudience("novice")}>
<hax-toolbar always-expanded ?hidden=${HAXStore.isPlatformAudience("novice") && HAXStore.isTextElement(this.activeNode)}>
<div class="group">
<hax-toolbar-menu
?disabled="${
Expand Down Expand Up @@ -240,6 +240,7 @@ class HaxPlateContext extends I18NMixin(HaxContextBehaviors(LitElement)) {
((!this.layoutParent || this.activeNode !== this.layoutElement) &&
!this.layoutElement)
}"
?hidden="${HAXStore.isPlatformAudience("novice")}"
icon="hax:select-element"
label="${this.t.selectLayout}"
>
Expand Down Expand Up @@ -370,6 +371,7 @@ class HaxPlateContext extends I18NMixin(HaxContextBehaviors(LitElement)) {
this.disableOps ||
this.disableDuplicate
}"
?hidden="${HAXStore.isPlatformAudience("novice")}"
label="${this.t.duplicate}"
icon="icons:content-copy"
event-name="hax-plate-duplicate"
Expand Down Expand Up @@ -410,6 +412,7 @@ class HaxPlateContext extends I18NMixin(HaxContextBehaviors(LitElement)) {
?disabled="${
this.hasActiveEditingElement || this.viewSource || this.disableOps
}"
?hidden="${HAXStore.isPlatformAudience("novice")}"
event-name="hax-plate-create-right"
data-simple-tour-stop
data-stop-title="label"
Expand All @@ -429,7 +432,7 @@ class HaxPlateContext extends I18NMixin(HaxContextBehaviors(LitElement)) {
this.hasActiveEditingElement || this.viewSource || this.disableOps
}"
event-name="hax-plate-remove-right"
?hidden="${!this.activeNode}"
?hidden="${!this.activeNode || HAXStore.isPlatformAudience("novice")}"
id="rightremove"
data-simple-tour-stop
data-stop-title="label"
Expand All @@ -453,7 +456,7 @@ class HaxPlateContext extends I18NMixin(HaxContextBehaviors(LitElement)) {
<slot name="secondary"></slot>
</div>
</div>
<div class="group">
<div class="group" ?hidden="${HAXStore.isPlatformAudience("novice")}">
<hax-context-item
action
label="${this.t.editElement}"
Expand Down
2 changes: 2 additions & 0 deletions scripts/haxthewebme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ if ! command -v node; then
powershell -C 'Add-Content -Path $PROFILE -Value "`nfnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression"'
# Write to PowerShell start profile so Node works outside Git Bash
echo "Added fnm init to PowerShell profile."
# Allow Node.js executables to run properly
powershell -C 'Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser'

# Write to bashrc
echo 'eval "$(fnm env --use-on-cd --shell bash)"' >> ~/.bashrc
Expand Down
Loading