mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Working on time tracker
This commit is contained in:
parent
954a7a8fd4
commit
638f248782
@ -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,8 +522,9 @@
|
||||
message = "{{ trans('texts.download_android_app') }}";
|
||||
}
|
||||
}
|
||||
if (link) {
|
||||
var options = {
|
||||
timeOut: 10000,
|
||||
timeOut: 5000,
|
||||
closeButton: true,
|
||||
onclick: function() {
|
||||
window.open(link, '_blank');
|
||||
@ -531,6 +532,7 @@
|
||||
};
|
||||
toastr.info(message, false, options);
|
||||
}
|
||||
}
|
||||
|
||||
if (model.isDesktop()) {
|
||||
sendKeepAlive();
|
||||
|
Loading…
x
Reference in New Issue
Block a user