Skip to content
Snippets Groups Projects
Commit 1b64d067 authored by Franco Pariani's avatar Franco Pariani
Browse files

New configurations checkbox

parent 855eb483
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,11 @@
<input type="checkbox" style="width: 15px; display: inline-block;" name="hintsCheck" class="form-control form-control-sm" [(ngModel)]=hintsCheck>
{{ "i18n.msg.codemirror.showHints" | translate }}
</label>
<br>
<label>
<input type="checkbox" style="width: 15px; display: inline-block;" name="typingCheck" class="form-control form-control-sm" [(ngModel)]=typingCheck>
{{ "i18n.msg.codemirror.functionTyping" | translate }}
</label>
</div>
<div class="form-group">
<button class="btn btn-secondary" (click)="saveConfig(); popover.close();">{{ "i18n.action.save" | translate | titleCase }}</button>
......
......@@ -79,6 +79,7 @@ export class MateFunComponent {
argumentoI = false;
argumentoF = false;
hintsCheck = true;
typingCheck = true;
editableLoaded = false;
editDialogFired = false;
archivosTree :any;
......@@ -458,7 +459,8 @@ export class MateFunComponent {
}
clickEnEditor(event){
this.codemirror.instance.functionDefinition(this.archivo.nombre, this.codemirror.instance.doc, event);
if (this.typingCheck)
this.codemirror.instance.functionDefinition(this.archivo.nombre, this.codemirror.instance.doc, event);
}
guardarArchivo(){
......
......@@ -73,7 +73,8 @@
"functionWarnings": "Show warnings of use of functions",
"infixOperatorsWarnings" : "Show warnings of use of infix operators",
"cursorPosition" : "Cursor position",
"showHints" : "Show autocomplete hints"
"showHints" : "Show autocomplete hints",
"functionTyping" : "Show functions typing"
},
"figure" : {
"multiPlot" : "Multi graph",
......
......@@ -73,7 +73,8 @@
"functionWarnings": "Mostrar advertencias de uso de funciones",
"infixOperatorsWarnings" : "Mostrar advertencias de uso de operadores infijos",
"cursorPosition" : "Posición del cursor",
"showHints" : "Mostrar sugerencias de autocompletar"
"showHints" : "Mostrar sugerencias de autocompletar",
"functionTyping" : "Mostrar tipado de funciones"
},
"figure" : {
"multiPlot" : "Multi gráfica",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment