adding requestSubAdminList

requestSubAdminList can be used to request the subAdmin list of the app
This commit is contained in:
Sai Raj 2020-02-26 17:08:45 +05:30 committed by GitHub
parent be2d4916f4
commit a0aa525ccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,18 @@
reject(result[1]) reject(result[1])
}).catch(error => reject(error)) }).catch(error => reject(error))
}) })
},
requestSubAdminList: function(){
return new Promise((resolve, reject) => {
this.util.requestData([floGlobals.application, 'subAdmins']).then(
result => {
if (result[0])
resolve(result[1])
else
reject(result[1])
}).catch(error => reject(error))
})
} }
} }
</script> </script>