Show access granted label next to Google Drive and Dropbox storage in configuration

This commit is contained in:
Michael Gapczynski 2012-08-12 15:50:39 -04:00
parent be32625fcc
commit b6b2f8826b
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,8 @@ $(document).ready(function() {
OC.dialogs.alert(result.data.message, 'Error configuring Dropbox storage');
}
});
} else if ($(this).find('.configuration #granted').length == 0) {
$(this).find('.configuration').append('<span id="granted">Access granted</span>');
}
}
}

View File

@ -22,6 +22,8 @@ $(document).ready(function() {
OC.dialogs.alert(result.data.message, 'Error configuring Google Drive storage');
}
});
} else if ($(this).find('.configuration #granted').length == 0) {
$(this).find('.configuration').append('<span id="granted" style="padding-left:0.5em;">Access granted</span>');
}
}
}