Commit 79620b4d authored by Joel Collins's avatar Joel Collins
Browse files

Show mDNS devices first if running electron

parent a8bdea5b
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -94,25 +94,25 @@ export default {
            placement: "bottom"
          }
        },
        ...(!this.liteMode
        ...(this.isElectron && !this.liteMode
          ? [
              {
                target: "#saved-connections-grid",
                target: "#nearby-connections-grid",
                header: {
                  title: "Saved microscopes"
                  title: "Nearby microscopes"
                },
                content: `Connect to your saved microscopes for faster access`
                content: `Connect to microscopes found on your network`
              }
            ]
          : []),
        ...(this.isElectron && !this.liteMode
        ...(!this.liteMode
          ? [
              {
                target: "#nearby-connections-grid",
                target: "#saved-connections-grid",
                header: {
                  title: "Nearby microscopes"
                  title: "Saved microscopes"
                },
                content: `Connect to microscopes found on your network`
                content: `Connect to your saved microscopes for faster access`
              }
            ]
          : []),
+8 −8
Original line number Diff line number Diff line
@@ -95,34 +95,34 @@

      <div class="uk-width-expand">
        <ul uk-accordion="multiple: true; animation: false">
          <li id="saved-connections-grid" class="uk-open">
            <a class="uk-accordion-title" href="#">Saved devices</a>
          <li v-show="isElectron" id="nearby-connections-grid" class="uk-open">
            <a class="uk-accordion-title" href="#">Nearby devices</a>
            <div class="uk-accordion-content">
              <div class="uk-grid-medium uk-grid-match uk-margin-top" uk-grid>
                <div v-for="host in savedHosts" :key="host.name">
                <div v-for="host in foundHostArray" :key="host.name">
                  <hostCard
                    :name="host.name"
                    :hostname="host.hostname"
                    :port="host.port"
                    :deletable="false"
                    @connect="handleConnectButton(host)"
                    @delete="delSavedHost(host)"
                  ></hostCard>
                </div>
              </div>
            </div>
          </li>

          <li v-show="isElectron" id="nearby-connections-grid" class="uk-open">
            <a class="uk-accordion-title" href="#">Nearby devices</a>
          <li id="saved-connections-grid" class="uk-open">
            <a class="uk-accordion-title" href="#">Saved devices</a>
            <div class="uk-accordion-content">
              <div class="uk-grid-medium uk-grid-match uk-margin-top" uk-grid>
                <div v-for="host in foundHostArray" :key="host.name">
                <div v-for="host in savedHosts" :key="host.name">
                  <hostCard
                    :name="host.name"
                    :hostname="host.hostname"
                    :port="host.port"
                    :deletable="false"
                    @connect="handleConnectButton(host)"
                    @delete="delSavedHost(host)"
                  ></hostCard>
                </div>
              </div>