Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

share remove register button #649

Closed
beryindo opened this issue Apr 27, 2016 · 11 comments
Closed

share remove register button #649

beryindo opened this issue Apr 27, 2016 · 11 comments

Comments

@beryindo
Copy link

replace :
LoginDialog.java and LoginDialog.ui.xml
download from here
http://gpsindo.web.id/traccar/
and rebuild traccar-web.war

screenshot_1225

@vitalidze
Copy link
Owner

Thank you for sharing. However, it's better to share changesets (or step-by-step approach) and not the whole files because they will be changed in time, and simple replacing will most probably break the system.

@beryindo
Copy link
Author

beryindo commented Apr 28, 2016

Ok vitalidze
Delete code in file LoginDialog.java
screenshot_1229

@UiField
TextButton registerButton;

screenshot_1230

if (ApplicationContext.getInstance().getApplicationSettings().getRegistrationEnabled()) {
registerButton.enable();
}

screenshot_1231

@UiHandler("registerButton")
public void onRegisterClicked(SelectEvent event) {
loginHandler.onRegister(login.getText(), password.getText());
}

Delete code in file LoginDialog.ui.xml
screenshot_1233

<gxt:button>
<button:TextButton ui:field="registerButton" text="{i18n.register}" enabled="false" />
</gxt:button>

@beryindo
Copy link
Author

can u help me vitalidze. how to show button for engine stop and engine resume in mode mobile ?

@vitalidze
Copy link
Owner

Thank you. I will think about opening new section on the web site. There is already a thread here discussing changing of the login screen background.

@vitalidze
Copy link
Owner

can u help me vitalidze. how to show button for engine stop and engine resume in mode mobile ?

You need to update index.html for the view and traccar-mobile.js for the code. Just call an REST API method.

@beryindo
Copy link
Author

can u helpe me for code :D, I don't know languange html and js :D

@vitalidze
Copy link
Owner

Well, I guess you can start learning from reading the Framework7 documentation

@beryindo
Copy link
Author

hmmmm hard code

@wolfbgn
Copy link

wolfbgn commented Apr 29, 2016

About REGISTER button.
Is this modification of files permanent or it is some how connected with the function of open and close registrations?
If it is permanent, is it possible to make it in some future releases connected with the check mark for the registrations ( now the button turns just gray - not disappear ).

@beryindo
Copy link
Author

Permanent, if u need not permanent just uncheck Registrasion :
screenshot_1268

@vitalidze
Copy link
Owner

Implemented, written news, updated latest and demo versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants