Skip to content

Commit

Permalink
[PDF mobile] button "Save" changed on "Send"
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Oct 4, 2024
1 parent 4e49664 commit a26f960
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
1 change: 1 addition & 0 deletions apps/documenteditor/mobile/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@
"textCloseHistory": "Close History",
"textEnterNewFileName": "Enter a new file name",
"textOk": "OK",
"btnSend": "Send",
"textRenameFile": "Rename File",
"textSwitchedMobileView": "Switched to Mobile view",
"textSwitchedStandardView": "Switched to Standard view"
Expand Down
4 changes: 4 additions & 0 deletions apps/documenteditor/mobile/src/less/app-ios.less
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,9 @@
bottom: 50px;
}
}

#btn-save-form {
background-color: @brand-form;
}
}

10 changes: 9 additions & 1 deletion apps/documenteditor/mobile/src/less/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -381,5 +381,13 @@
opacity: 0;
transition: opacity 300ms;
}

//
#btn-save-form {
background-color: @toolbar-icons;
color: @toolbar-background;
height: 2em;
border-radius: 1em;
padding-left: 15px;
padding-right: 15px;
}

8 changes: 5 additions & 3 deletions apps/documenteditor/mobile/src/view/Toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ const ToolbarView = props => {
: null),
(isVersionHistoryMode ?
<Link key='history-link' id='btn-open-history' icon='icon-version-history' href={false} className={isOpenModal && 'disabled'} onClick={() => props.openOptions('history')}></Link>
: null)
: null),
<Link key='btn-settings' className={(props.disabledSettings || props.disabledControls || isDisconnected || isOpenModal) && 'disabled'} id='btn-settings' icon='icon-settings' href={false} onClick={() => props.openOptions('settings')}></Link>
] : [
<Link key='prev-field-link' className={(props.disabledSettings || props.disabledControls || isDisconnected || isOpenModal) && 'disabled'} id='btn-prev-field' icon='icon-prev-field' href={false} onClick={() => props.movePrevField()}></Link>,
<Link key='next-field-link' className={(props.disabledSettings || props.disabledControls || isDisconnected || isOpenModal) && 'disabled'} id='btn-next-field' icon='icon-next-field' href={false} onClick={() => props.moveNextField()}></Link>,
<Link key='save-form-link' className={(props.disabledSettings || props.disabledControls || isDisconnected || isOpenModal) && 'disabled'} id='btn-save-form' icon='icon-save-form' href={false} onClick={() => props.saveForm()}></Link>,
<Link key='btn-settings' className={(props.disabledSettings || props.disabledControls || isDisconnected || isOpenModal) && 'disabled'} id='btn-settings' icon='icon-settings' href={false} onClick={() => props.openOptions('settings')}></Link>,
<Link id='btn-save-form' key='save-form-link' className={(props.disabledSettings || props.disabledControls || isDisconnected || isOpenModal) && 'disabled'}
text={t("Toolbar.btnSend")} /*icon='icon-save-form'*/ href={false} onClick={() => props.saveForm()}></Link>,
]}
<Link className={(props.disabledSettings || props.disabledControls || isDisconnected || isOpenModal) && 'disabled'} id='btn-settings' icon='icon-settings' href={false} onClick={() => props.openOptions('settings')}></Link>
</NavRight>
</Fragment>
)
Expand Down

0 comments on commit a26f960

Please sign in to comment.