Working on time tracker
This commit is contained in:
parent
954a7a8fd4
commit
638f248782
2 changed files with 13 additions and 11 deletions
|
|
@ -3,7 +3,7 @@
|
|||
return [
|
||||
|
||||
// Marketing links
|
||||
'time_tracker' => env('TIME_TRACKER_URL', 'https://www.invoiceninja.com'),
|
||||
'time_tracker_web_url' => env('TIME_TRACKER_WEB_URL'),
|
||||
|
||||
// Hosted plan coupons
|
||||
'coupon_50_off' => env('COUPON_50_OFF', false),
|
||||
|
|
|
|||
|
|
@ -507,11 +507,11 @@
|
|||
toastr.options.positionClass = 'toast-bottom-right';
|
||||
|
||||
if (navigator.userAgent != 'Time Tracker') {
|
||||
var link = '{{ config('ninja.time_tracker') }}';
|
||||
var link = '{{ config('ninja.time_tracker_web_url') }}';
|
||||
var message = "{{ trans('texts.download_desktop_app') }}";
|
||||
if (isMobile) {
|
||||
toastr.warning("{{ trans('texts.time_tracker_mobile_help')}}", false, {
|
||||
timeOut: 10000,
|
||||
timeOut: 5000,
|
||||
closeButton: true,
|
||||
});
|
||||
if (isIPhone) {
|
||||
|
|
@ -522,14 +522,16 @@
|
|||
message = "{{ trans('texts.download_android_app') }}";
|
||||
}
|
||||
}
|
||||
var options = {
|
||||
timeOut: 10000,
|
||||
closeButton: true,
|
||||
onclick: function() {
|
||||
window.open(link, '_blank');
|
||||
}
|
||||
};
|
||||
toastr.info(message, false, options);
|
||||
if (link) {
|
||||
var options = {
|
||||
timeOut: 5000,
|
||||
closeButton: true,
|
||||
onclick: function() {
|
||||
window.open(link, '_blank');
|
||||
}
|
||||
};
|
||||
toastr.info(message, false, options);
|
||||
}
|
||||
}
|
||||
|
||||
if (model.isDesktop()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue