Commit 30667cc7 authored by Alessandro Elias's avatar Alessandro Elias

Merge branch 'issue/642' into 'rc-1.0.0'

Hotfix: SCRUM#642: Desativa a extensao na versao particular

See merge request !5
parents 4fe81278 f9f5f615
Pipeline #18844 passed with stages
in 6 minutes and 10 seconds
le-inep-bar (1.0.1) unstable; urgency=medium
* Deactivates the extension in the "Particular" version of LE (Closes: #642)
-- legton <lesuporte@c3sl.ufpr.br> Wed, 12 Dec 2018 06:58:19 -0200
le-inep-bar (1.0.0) unstable; urgency=medium
* Initial release (Closes: #608)
......
......@@ -29,6 +29,16 @@ const St = imports.gi.St;
let button, label, infoBox, text;
let escola, inep, color, textoInfo;
function isParticular() {
var getVersion = 'cat /etc/default/version || true';
version = GLib.spawn_command_line_sync(getVersion)[1].toString();
version = version.trim();
if (version == "Particular") {
return true;
}
return false;
}
// Gets the school name if the file exists
function getSchool() {
var getInep = 'cat /opt/seed_mec/SEED2/client/conf/inep || true';
......@@ -53,13 +63,19 @@ function getSchool() {
escola = 'INEP AINDA NÃO INSERIDO!';
color = 'red';
textoInfo = 'CLIQUE AQUI PARA INSERIR O NÚMERO DO INEP';
Main.notify('O INEP da sua escola ainda não foi configurado!');
if (!isParticular()) {
Main.notify('O INEP da sua escola ainda não foi configurado!');
}
}
}
// Gets the name on start
getSchool();
if (isParticular()) {
disable();
}
function init() {
button = new St.Bin({ style_class: 'inep-label',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment